[Gambas-user] who is the parent?
Jochen Georges
jochengeorges at ...467...
Tue Dec 28 16:53:12 CET 2004
Hello gambanauts,
the following code compiles but throws a stack overflow:
PUBLIC SUB _new()
btn AS Button
btn = NEW Button(Form1) ' this throws the stack overflow
btn.X = 20
btn.Y = 30
btn.Width = 60
btn.Height = 30
btn.Caption = "Hallo"
END
Button(parent AS Container)
Form is a container, isn't it?
(Control - Container - Window - Form)
Thanks for any hints.
Jochen
More information about the User
mailing list