FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Vital for Programs Transfers
Posts: 334
Joined: Fri Oct 14, 2005 01:54 PM
Vital for Programs Transfers
Posted: Thu Mar 09, 2006 03:36 PM

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 .

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Vital for Programs Transfers
Posted: Thu Mar 09, 2006 05:58 PM

Ehab,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 334
Joined: Fri Oct 14, 2005 01:54 PM
Vital for Programs Transfers
Posted: Thu Mar 09, 2006 06:42 PM

Is there a way to fix this ? No resources modifications according to screen resolution ???

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Vital for Programs Transfers
Posted: Thu Mar 09, 2006 07:47 PM

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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 125
Joined: Wed Oct 19, 2005 02:28 PM
Screen Ratios
Posted: Mon Jun 19, 2006 04:11 PM

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.

Dave Zowasky
Com1 Software, Inc.
http://www.com1software.com
information@com1software.com
330 653-3771
Posts: 334
Joined: Fri Oct 14, 2005 01:54 PM
Vital for Programs Transfers
Posted: Mon Jun 19, 2006 07:11 PM

How can I implement that ratio on programs ?

Continue the discussion