Hi,
I'm rather new to B4A and I'm wondering wether there is a reason for 'invalid' events. In B4As Beginners Guide, p.241 / chapter 14.6 there is a list of valid events for different views. This corresponds to the events that can be created through Designer's 'Generate Members' option.
However I found other events working well (but did not test all combinations). E.g. following code runs flawlessly:
Private ToggleAsButtonTest As ToggleButton
...
Sub ToggleAsButtonTest_Click
ToggleAsButtonTest.Checked = True
Msgbox("OK","")
ToggleAsButtonTest.Checked = False
End Sub
This is just some test code to use a toggle button with its graphic indicator as a simple button.
Using 'invalid' events on other views worked whatever I tried, too.
Is there any deeper reason that not all events are listed as valid for all views?
Do I have to expect unwanted side effects or (future) compatibility issues using 'invalid' events.
Thanks
Nikolaus
I'm rather new to B4A and I'm wondering wether there is a reason for 'invalid' events. In B4As Beginners Guide, p.241 / chapter 14.6 there is a list of valid events for different views. This corresponds to the events that can be created through Designer's 'Generate Members' option.
However I found other events working well (but did not test all combinations). E.g. following code runs flawlessly:
Private ToggleAsButtonTest As ToggleButton
...
Sub ToggleAsButtonTest_Click
ToggleAsButtonTest.Checked = True
Msgbox("OK","")
ToggleAsButtonTest.Checked = False
End Sub
This is just some test code to use a toggle button with its graphic indicator as a simple button.
Using 'invalid' events on other views worked whatever I tried, too.
Is there any deeper reason that not all events are listed as valid for all views?
Do I have to expect unwanted side effects or (future) compatibility issues using 'invalid' events.
Thanks
Nikolaus