[Gambas-user] Buttons again not working

Kadaitcha Man nospam.nospam.nospam at ...626...
Wed Dec 9 14:47:14 CET 2009


2009/12/10 M. Cs. <mohareve at ...626...>:

butty = NEW Button(keret)
^^^^^^^^^^^^^^^^
butty.x = 340
butty.y = 250
butty.Width = 120
butty.Height = 25
butty.Text = "OK"
keret.Center
Object.Attach(butty, ME, "Ops")
^^^^^^^^^^^^^^^^^^^

"butty" is already attached to "keret"

You should attach "keret" to ME, or:

butty = NEW Button(ME)

Of course, if you use the latter constructor, you have zero control
over where "butty" appears on ME.

Look at the attached code, and take note of the form design.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TextBoxExample.tar.gz
Type: application/x-gzip
Size: 8879 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20091210/aee45415/attachment.bin>


More information about the User mailing list