[Gambas-user] who is the parent?
Benoit Minisini
gambas at ...1...
Tue Dec 28 17:01:20 CET 2004
On Tuesday 28 December 2004 16:53, Jochen Georges wrote:
> 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
>
>
Can you send your project ?
--
Benoit Minisini
mailto:gambas at ...1...
More information about the User
mailing list