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.







------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to