cancel
Showing results for 
Search instead for 
Did you mean: 

Resize problem

former_member203861
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

former_member203861
Participant
0 Kudos

Hi Ahmed ,

well , its a little bit more complicated ...

you know I have tabs with dw in it ,a dw  menus I have created and so on...

thanks any how

Former Member
0 Kudos

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