[Gambas-user] CheckBox Group property for created Checkbox

Ian Roper ian.roper at ...1974...
Sun Apr 29 09:17:57 CEST 2012


Greetings all,

If you create a new checkbox as a child of an existing control....

Dim MyCheckbox as Checkbox

Checkbox = New checkbox(MyScrollView) as "MyCheckboxName" &
Str(RecordId)

Checkbox.Group = "MyCheckBoxGroup" is not valid.

The Group property is not visible in the list of available properties.
In the GUI it is available for a normal checkbox control.


My objective is to load a scrollview with a child checkbox for each
record of a data table - this all works fine.

I wanted to raise an event and then take some action if any of the
checkboxes is clicked

>From the "Tip Of the Day #12 ( Gambas 3.1.1 ) with the example given for
a button control this should work.

Private Sub MyCheckBoxGroup_Click()

{do stuff}

End

I tried to do this with a button as an additional test and there is no
Group Property either when you create in this way.

Am I doing this the wrong way ?



========================================
[System]
OperatingSystem=Linux
Kernel=3.2.0-24-generic
Architecture=i686
Memory=2057364 kB
DistributionVendor=Ubuntu
DistributionRelease="Ubuntu 12.04 LTS"
Desktop=Gnome

[Gambas 2]
Version=2.23.1
Path=/usr/bin/gbx2

[Gambas 3]
Version=3.1.90
Path=/usr/local/bin/gbx3

[Libraries]
Qt4=libQtCore.so.4.8.1
GTK+=libgtk-x11-2.0.so.0.2400.10

===========================================

Revision is pretty recent - update by SVN around once a week so Rev-4668
25/04/2012 minimum.

Regards,
Ian Roper
Perth - Western Australia.










More information about the User mailing list