[Gambas-user] Pixels and Debian

Benoît Minisini gambas at ...1...
Fri Jun 22 21:56:32 CEST 2012


Le 20/06/2012 18:10, Willy Raets a écrit :
> Hi all,
>
> I've been testing some of my applications written on Ubuntu 10.10 on
> other distributions. I have noticed that on Debian 6.0.3 and 4 (unlike
> on Ubuntu 10.04 and 10.10 or Lubuntu 12.04) strange things happen, both
> with Gambas 2.24 and 3.1 written applications.
>
> What happens is all pixel related it seems.
> Some examples you can simply reproduce:
> 1. If I place a 48x48 png in a PictureBox of 48x48 (property Stretch set
> to False) the image displays correct in Ubuntu and Lubuntu but seems to
> be to big for the PictureBox when run on Debian.
>
> 2. A form with width set to 1014 doesn't fit on Debian with a screen
> resolution of 1024 width! It does on Ubuntu and Lubuntu
>
> 3. When drawing a text on a DrawArea of width 384 and the Draw.Text X
> position is 50 the text fits in the Drawing area on Ubuntu/Lubuntu
> (there is even space left over between the end of the text and the end
> of the DrawArea), but on Debian the end of the text is not within the
> DrawArea and thus cut off!
>
> Anyone else has this problem? Is it a bug in Debian or both Gambas 2 and
> 3
>
> Willy
>

By default, the dimensions of all forms defined in the IDE (with their 
controls) is proportional to the font size.

If you want absolute pixel sizes, you have to set the "Scaled" virtual 
property of the form in the IDE, or move/resize your controls by hand.

Regards,

-- 
Benoît Minisini




More information about the User mailing list