[r2]: / trunk / Library / Libname / Function Blocks / VisuFbMaterialSwitch / protected / protUpdate / svnobj  Maximize  Restore  History

Download this file

14 lines (13 with data), 1.8 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
METHOD protUpdate : BOOL
VAR_INPUT
IF m_pValue <> NULL THEN
	m_bToggleState := m_pValue^.GetValue();
ELSE
	m_bToggleState := FALSE;
END_IF
IF m_pStateVariables <> NULL THEN
	m_pStateVariables^(_EffectiveState := EffectiveState);
// Disable hover when input is disabled
IF EffectiveState.bInputDeactivated THEN
	Hover := FALSE;
recalculatePart();