[Gambas-user] Aspect ratio of Gambas projects

Leonardo Miliani leonardo at ...1237...
Mon Jan 1 16:35:39 CET 2007


Hi Benoit,
some time ago I wrote about different aspect ratios of the same Gambas
project running on different systems.
I would like to re-propose the question.

Let me explain.
I have 2 computers, a desktop and a laptop, both with openSUSE 10.2.
If I write a program on my desktop and try to run it on the laptop, I
get different aspect ratios of every object of it (windows, labels,
etc..). But I have similar resolutions: desktop 1280x1024, laptop
1280x800. The width is the same, so I should expect to find a similar
aspect ratio, but this is not true. It isn't true because Gambas
computes the aspect ratio not just on desktop fisical resolution
(misured in pixels) but on font sizes.
On my desktop, with KDE 3.5.5, I've set the "general font" size to 11,
on my laptop I use 10 pixels instead. So, for Gambas the aspect ratios
change between these systems.
I've solved setting the laptop "general font" to 11, so I've got the
same aspect ratio for both the computers.

It should be better to compute some sort of algorithm using real
dimensions of desktop instead of using font size, am I wrong? :-)

Happy new year!

-- 
Ciao.
Leo.

Web: www.leonardomiliani.com
E-mail: leonardo at ...1237...
Scegli software opensource - Choose opensource software




More information about the User mailing list