From Xojo Documentation
|You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!|
New in 2010r4
The standard checkbox used by web apps. This checkbox itself of this control is implemented as a native browser control.
Test to see if the user has checked the CheckBox:
You can also check the CheckBox in your code:
See the ControlWithName example in the Examples folder for an example of togglng a checkbox using the WebView.ControlWithName method. It uses ControlWithName in the following way.
cb = WebCheckbox(Self.ControlWithName("Checkbox" + TextField1.Text))
If cb = Nil Then
MsgBox("There is no checkbox with the name: Checkbox" + TextField1.Text)
cb.Value = Not cb.Value
The TextField1 control contains a valid number, so the method is able to toggle that checkbox.