[Gambas-user] Problem with Label, centered form and text in 1.9.35

Benoit Minisini gambas at ...1...
Tue Aug 1 18:31:13 CEST 2006


On Saturday 29 July 2006 17:24, Stefano Palmeri wrote:
> Alle 14:29, venerdì 28 luglio 2006, rolf ha scritto:
> > Hi Gambasinos,
> >
> > I compiled Gambas 1.9.35 under Debian Testing - all requiered libs are
> > installed with aptitude - and have the following problem.
> >
> > A form is started maximized with border for resize. The form has a text
> >label
> > with a centered text and the resize method resizes the label too. At
> > first start I get the text written twice evtl. partly overlayed.
> >
> > I send this as a bug report to Benoit, but he can't verify this behavior
> >with
> > the attached example.
> >
> > Can someone else test the program to help finding the reason.
> > Thank you
> >
> > BTW. The problem does not exists in version 1.9.31
>
> Hi, Rolf.
>
> I tested your example and I experienced the same problem.
>
> My Gambas2 version is 1.9.34
> KDE is 3.4.2
> QT is 3.3.2
>
> Also, I noticed that if you set maximized=False instead
> of True in the form properties, and then you add this two lines in
> Form_Open():
>
> ME.Width = Desktop.Width
> ME.Height = Desktop.Height
>
> the problem goes away.
>
> Regards,
>
> Stefano Palmeri
>
>
> Stupid post scriptum: as another temporary workaround
> I made this:
>
> PUBLIC SUB Form_Resize()
>
>   Label1.Text = ""
>   Label1.Width = ME.Width - 20
>   Label1.Text = "Test"
>
> END
>

I finally found a workaround for this problem, that came from a Qt 
optimization. You will get it in the next version.

Regards,

-- 
Benoit Minisini





More information about the User mailing list