A ALEX BISSARO PITTA Member Licensed User May 20, 2019 #1 How to force a togglebutton by means of program? I'm trying "Togglebutton.checked=true" but does not work. Is there any way?
How to force a togglebutton by means of program? I'm trying "Togglebutton.checked=true" but does not work. Is there any way?
Erel B4X founder Staff member Licensed User Longtime User May 20, 2019 #2 Why use ToggleButton? Use B4XSwitch from XUI Views. Looks much better. Checked works fine. The problem is somewhere else. Tested with this code: B4X: Sub Activity_Click ToggleButton1.Checked = Not(ToggleButton1.Checked) End Sub Upvote 0
Why use ToggleButton? Use B4XSwitch from XUI Views. Looks much better. Checked works fine. The problem is somewhere else. Tested with this code: B4X: Sub Activity_Click ToggleButton1.Checked = Not(ToggleButton1.Checked) End Sub