Page 1 of 1

Vital for Programs Transfers

Posted: Thu Mar 09, 2006 3:36 pm
by Ehab Samir Aziz
if I transfered my program from 1 Pc to another I should change the positions of buttons (X,Y) . What should I do to completely get rid of that problem .
program transfers sould done regardless the screen resolution,Display dimensions .

Posted: Thu Mar 09, 2006 5:58 pm
by Antonio Linares
Ehab,

If you store your dialogs in resources, then you may have different ones for different screen resolutions and use the right one accordingly.

Posted: Thu Mar 09, 2006 6:42 pm
by Ehab Samir Aziz
Is there a way to fix this ? No resources modifications according to screen resolution ???

Posted: Thu Mar 09, 2006 7:47 pm
by James Bott
Ehab,

I'm sure it is possible, but not easy. The entire dialog and every control and font would have to be resized for each screen resolution. I started working on this once, but found it to be very difficult. It would probably also slow down the displays since all that calculation would have to be done each time a dialog was displayed.

This always seems to be an irony to me. If the user wants to use a higher screen resolution, then presumably they want to fit more on the screen. But, if all the objects then resize themselves, everything takes up just as much of the screen as it did at a lower resolution. They haven't gained anything.

So the simple solution is for the user to select a screen resolution that makes things the size they want them. There are probably lots of users that don't even know they can do this.

Of course, the best solution would be to have automatic resizing that could also be turned on and off by the user.

James

Screen Ratios

Posted: Mon Jun 19, 2006 4:11 pm
by Dave Zowasky
screen ratios are 4:3 or 5:4 for wide.


I am aware that HD TV is using 16:9

by using the calc

480/640=.75
600/800=.75
768/1024=.75
864/1152=.75
960/1280=.75
These are 4:3 ratio


1024/1280=.8
this is 5:4 ratio


I hope this helps.

Posted: Mon Jun 19, 2006 7:11 pm
by Ehab Samir Aziz
How can I implement that ratio on programs ?