on 11-14-2014 7:19 AM
Hello all ,
Does anyone has some idea dealing with resolution problem ?
I have deployed my application in 1024 X 768 resolution .
This application runs now over 100 computers or more in different resolutions .
How do I deal with it ?
I did find some code for it but it now works so good ( see the file attached )
Working with PB12.5 / 11.5 classic with all windows versions ( 32 bit / 64 bit )
Thanks
moshe
the best practice to deal with resolution problems is to resize your windows objects /datawindows based on ( workspacewidth() , workspaceheight() )
Once you know your workspace dimensions you can do some object resizing :
something like this :
mywin.width = workspacewidth() - 100
then maybe :
dw_1.width = mywin.width - mywin.dw_1.x -100
Regards ,
Ahmed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Moshi,
Unable to locate the attachment which presumably shows the problem...
If you have tab pages (and they are user objects) define a new event for each and map to pbm_size. Then code each appropriately depending on what controls are on the page:
dw_1.resize ( newwidth - dw_1.x * 2, newheight - dw_1.y - dw_1.x)
(I usually use dw_1.x as the margin. That's why I subtract it from the height)
The overall tab is the same thing:
tab_1.resize ( newwidth - tab_1.x * 2, newheight - tab_1.y - tab_1.x)
HTH
Lars
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.