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

Stefano Palmeri stefanopalmeri at ...152...
Sat Jul 29 17:24:28 CEST 2006


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














More information about the User mailing list