Hi,
- Create a dbView
- Create a RadioGroup
- Create a Property inside the RadioGroup
Ok, you will have something like this:
Code:
Use Windows.pkg
Use DFClient.pkg
Deferred_View Activate_oBugVDF for ;
Object oBugVDF is a dbView
Set Border_Style to Border_Thick
Set Size to 200 300
Set Location to 2 2
Object oRadioGroup1 is a RadioGroup
Set Location to 47 86
Set Size to 54 77
Set Label to 'oRadioGroup1'
Property Boolean pbHelloWorld True
Object oRadio1 is a Radio
Set Label to "Radio Label 1"
Set Size to 10 61
Set Location to 10 5
End_Object
Object oRadio2 is a Radio
Set Label to "Radio Label 2"
Set Size to 10 61
Set Location to 25 5
End_Object
Object oRadio3 is a Radio
Set Label to "Radio Label 3"
Set Size to 10 61
Set Location to 40 5
End_Object
Procedure Notify_Select_State Integer iToItem Integer iFromItem
Forward Send Notify_Select_State iToItem iFromItem
//for augmentation
End_Procedure
//If you set Current_Radio, you must set it AFTER the
//radio objects have been created AND AFTER Notify_Select_State has been
//created. i.e. Set in bottom-code of object at the end!!
//Set Current_Radio To 0
End_Object
Cd_End_Object
At the "Code Explorer" panel select the RadioGroup, go to "Properties -> Events" panel and double click over the event "OnRadioGroupEntering".
The result is:
Code:
Function pbHelloWorld Returns Boolean
Boolean bRetVal
Forward Get pbHelloWorld to bRetVal
Function_Return bRetVal
End_Function
I notice this behaviour in 16.0, 15.1 and 15.0 with many other controls and many other events, you can try for example a "ComboForm" with "OnChildWrapping".
Regards.