PxPlus User Forum

Twitter Twitter Twitter

Author Topic: From It run program - debug window too short  (Read 1234 times)

Jon Toomsen

  • Silver Member
  • ***
  • Posts: 24
    • View Profile
From It run program - debug window too short
« on: January 08, 2024, 11:04:59 AM »
When you run a program from it the window that pops up is too short.
How do I change the length of the window

Susan Cryderman

  • Staff
  • Gold Member
  • *****
  • Posts: 63
    • View Profile
    • PVX Plus Technologies Ltd.
Re: From It run program - debug window too short
« Reply #1 on: January 08, 2024, 11:18:17 AM »
We are having some difficulty determining the exact window you are referring to.
 
Could you perhaps detail the exact steps you follow to display the window or, better yet, attach a screen shot of the the window that is too short?   

Thanks!

Mike King

  • Diamond Member
  • *****
  • Posts: 3818
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: From It run program - debug window too short
« Reply #2 on: January 09, 2024, 11:56:05 AM »
When you run a program from within IT using F7, the menu Debug >> Debug current program, or the menu option Run >> PxPlus the system will spawn a new instance of PxPlus using the default window size.  The default consists of an 80x25 window inside a window frame container whose dimensions is set in your INI file in the [WindowFrame] section.

Generally I suggest that you override these by providing a START_UP program that sets whatever you want as a minimum window size by calling *cmd/system/wdw and passing the size desired as WWxHH (e.g. "100x30").  This will create the base window the size desired, however you will still need to adjust the outer frame size to suit your needs.

You could also try adding the following commands to your START_UP:

CALL "*cmd/system/wdw", "100x30"  ! Or whatever your desired minimum cols/lines might be
CALL "*cmd/system/wdw", "zoom auto"


This will tell the system to create a 100x30 window then adjust the font size so you end up with the desired window size (in terms of columns/lines) within the frame and to tweak the frame size to match the window size.  The auto option enables tracking any frame size adjustments made by the user and have the system adjust the font accordingly.
« Last Edit: January 09, 2024, 08:03:55 PM by Mike King »
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com