[Gambas-user] Dynamically loading labels doesn't work for me.

Corne van Tonder johnny.requiem at ...626...
Fri Apr 8 20:32:27 CEST 2011


Hey Guy's,

I've been trying to load label on to a form in code using both gambas2, as
well as Gambas3.

I can create a TextBox, thus......

<CODE>
Public Sub Form_Open()

Dim i As TextBox
Me.Arrangement = Arrange.Column
i = New TextBox(Me)
i.width = 100
i.text = "Hello, World!"

End
</CODE>

I cannot do the same with a Label using exactly  the same code (changing the
obvious....obviously ;-) )

I'm running Gambas on Slackware13.1

Many thanks in advance
cvt



More information about the User mailing list