[Gambas-user] Pixels and Debian

Willy Raets willy at ...2734...
Sat Jun 23 16:44:24 CEST 2012


On vr, 2012-06-22 at 21:56 +0200, Benoît Minisini wrote:
> 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,

Setting the Scaled property on the form did solve part of the problem.

1. Pixel of 48x48 now fits PictureBox of 48x48 on Debian 6.0.4

2. Form width of 1000 pixels now correctly fits within screen width of
1024 on Debian 6.0.4

3. Drawing text on a DrawArea still poses a problem on Debain 6.0.4
(see attached screens -> Ubuntu 10.10 -> text fits; Debian 6.0.4 -> text
goes beyond the DrawArea -> so doesn't fit)
I believe Ubuntu 10.04 having the same problem as Debian 6.0.4.

I build a small sample application where you can see the problem
yourself (depending on what distro you run it).
Any suggestions on how to solve this drawing text on a DrawArea?

Willy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Debian-6.0.4.png
Type: image/png
Size: 37448 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20120623/4242091c/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Ubuntu-10.10.png
Type: image/png
Size: 55533 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20120623/4242091c/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PixelProblems-0.0.1.tar.gz
Type: application/x-compressed-tar
Size: 6156 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20120623/4242091c/attachment.bin>


More information about the User mailing list