PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Sun Feb 15, 2004 7:09 am Post subject: DPI problem |
|
|
Problem: When setting OPTION SCALE,96 in your code it obviously now causes the dialog controls to resize/scale to 96 dpi. This works fine.
However change your DPI to 120. Now reboot and load your app, it shows up fine.
But if you use the function @dlgpos(BUTTON1,TLWH) it reports incorrect values. The values returned are close to the hardcoded values within teh script but usually are off by 1-2 digits.
I think the values returned are supposed to be virtual locations in respect to the dialog size, but in reality teh dialog itself has resized to a larger size and controls as well. It would be better off to return the actual top,left,width,height values. In cases wehre you need to check a mouseover it would not report correctly since the tpp, left width, height of the object is not what was hardcoded. |
|