Phantom Documentation

[Help Home] [Phantom Home]
IsChecked

bCheck = window.IsChecked();

Applicable Classes: Button (checkbox), Menu

Parameters: None
Return Value:
bool bCheck - The boolean value indicating the check state of the checkbox or menu.  A 'true' value is returned if the checkbox or menu is checked, 'false' otherwise.

Description:
The IsChecked function returns the state of a checkbox or menu.

For an example with a Menu, see Menu functions.


Example Code

# Include Phantom Target Declarations
use "PhantomTarget.dec";
System("PhantomTarget.exe");

# Open the check controls
PhantomTarget._Controls._CheckBox.Select();

# Get the check states of the controls
bool b = Check.CheckBox.IsChecked();
disp(b);
b = Check.Enabled.IsChecked();
disp(b);

# Exit out
Check.OK.Click();
PhantomTarget.Close();



See Also: Button Functions, Menu Functions



Copyright 2000-2011 Phantom Automated Solutions