"Leonid" <le...@onpe.com> wrote in message news:38725C9E...@onpe.com...I have run into a problem with fitting an application on screen.The interface is designed to take full advantage of all screen real-estate. The dw control in the main window takes up the whole screen. This is very necessery. The problem is that many users have different screen resolution and size settings. Some use 1024 x 726, while others prefer 800 x 600, while still others use 640 x 480 (these must be the really blind ones). PB doesn't seem to have any sort of utility taht will automatically resize controls acordingly with the environment the user has set on his/her machine. PLASELET ME KNOW if there is such a utility or pre-written code available.
To get around the problem, I use the environment object in PB to read in screen resolution and use one of three appropriate datawindows that only differ proportionally in size. Well, this solved part of the problem. However, now I have run into many users who have LARGE FONTS selected in their windows display settings. This completely screws everything up. Now I am completely stuck. I don't know what else to do short of telling them to switch to Small fonts. This, however, is only a temporary solution.
Can anyone advize me on this? Is there a resize utiliuty out there? Is there at least a way to read in the Font size setting from windows? I would prefer a resize utility, but if I can at least read the Font size setting into the environment user object in PB, I can design three more dw's that will show up accordingly.
I appreciate any help I can get on this -- the users are biting my head off. Almost literally.
Leon.
"Leonid" <le...@onpe.com> wrote in message news:38725C9E...@onpe.com...
Leonid <le...@onpe.com> schreef in berichtnieuws 3873B1F7...@onpe.com...Oscar,Thanks for the response. I understand how to resize a DW accordingly with the window now. The ZOOM function is pretty handy. However, how do I size the main mdi window to the screen settings the user has defined?
Leon.
Oscar Ramirez wrote:
Leon, Take a look at the PowerBuilder Examples for a code example. Under the 'Window Controls' category, there is an example called 'Resizing Controls on a Window'. The main concept is to think first on the size of your Main window, then you start sizing everything inside the window proportionately. For datawindows, the Zoom function is just great for resizing these controls. Check it out! Oscar Ramirezex TeamPS"Leonid" <le...@onpe.com> wrote in message news:38725C9E...@onpe.com...I have run into a problem with fitting an application on screen.