[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gambas-bugtracker] Bug #2981: Can't set some properties on dynamically-created controls.


http://gambaswiki.org/bugtracker/edit?object=BUG.2981&from=L21haW4-

Comment #4 by Bruce STEERS:

I can confirm this Benoit

His simple example code produces the bug. (gtk3)

A textbox created in the form designer will set to the desired color as expected and it will also change color if you set the .Background to another color later by code.

But a Textbox created by code in Form_Open() never changes BG color and is stuck on default.

I just tried a test project that has a textbox created in the IDE and another created in Form_Open()

This code...

Public Sub Button1_Click()

  TextBox1.Background = Color.Red
  tb.Background = Color.Red

End

only changes the IDE made textbox BG

----------------------------------------------------------------------------

Attachment: _aa-0.0.1.tar.gz

Bruce STEERS changed the state of the bug to: Accepted.


----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----