Author | Topic: Re: Screen Size in GUI Mode | |
---|---|---|
James Loughner | Re: Screen Size in GUI Mode on Tue, 20 Jul 2004 11:58:33 -0400 Scott Krise wrote: > I recently converted a system from clipper into Xbase. In doing so, it was > necessary to change my compile options to > "GUI = yes". Until making this change, I was always able to make the > application run in a full screen mode, but with this GUI = yes, I can no > longer do that. Now the screen is set to some fixed size (about 1/2 of the > screen size), and I cannot find any way to change that. Where do the screen > dimensions get set and how do I change them? In GUI mode you are no longer running in a console. The XbpCRT object is of fixed size based on the number of columns, lines, and font size. These are set in the Appsys function at start up. You can copy the APPSYS.PRG from \ALASKA\XPPW32\SOURCE\SYS modify and link to change the size. To dynamicly change size by mouse etc you need to move on to the XbpDialog class. > > Also, I'm not sure if this problem is related, but I was designing a print > preview screen using a dialog box, and when it was displayed on the screen, > it could only be viewed within the confines of the window the program was > running in. If you tried to drag the box out of that area, it would truncate > the box at the edge of the program window. This is what happens if a dialog is the "child" an other dialog. Make the second window 'Owned' by the original. ie oDlg2 := XbpDialog():New(AppDeskTop(),oDlg1, aPos, aSize) It then really neat to set the MoveWithOwner ivar so moving oDlg1 also moves oDlg2 Jim > > Thanks for the help. > > Scott > > |