Button

SUMMARY

Summing-up of Button, Checkbox, Radio-Button

CONTENTS

  1. Type
  2. Binding

Type

Button:
normal Button

Checkbox:
Windows-Standard-Checkbox

Radio-Button:
Windows-Standard-Radio-Button

Apply Group:
As before

Radio-Button Group:
All Radio-Buttons grouped together must keep the same text here. (Not used yet)

Binding

Enable
Defines the operability of an action. If ‘enable’ is set to 0 the label is grayed-out to indicate that it cannot currently be operated or selected by the user.

Example
Refresh-Script:
SetVal(Enable, 0);        //disable

Example for a Button:
Aktion:
SetVal(OBJ.MyObject.Value, 14);

Example for a Checkbox:
Refresh:
    Please notice that the checkmark is not set by the mouse click but by the 
    Refresh-Skript.
			 
SetVal(Enabled, OBJ.MyObject.Valid);        
                 //OBJ.MyObject.Valid is 0 or 1, if 0 the checkbox is disabled
SetVal(Checked, OBJ.MyObject.Value);        //OBJ.MyObject.Value is 0 or 1

Action: 
SetVal(OBJ.MyObject.Value, 1);

Example for Radio-Buttons:
BUTTON1:
 
Refresh:
SetVal(Checked, OBJ.MyObject1.Value);        //OBJ.MyObject1.Value is 0 or 1

Aktion:
SetVal(OBJ.MyObject1.Value, 1);
SetVal(OBJ.MyObject2.Value, 0);
_______________________________________________________________________________
BUTTON2:
 
Refresh:
SetVal(Checked, OBJ.MyObject2.Value);        //OBJ.MyObject2.Value is 0 or 1

Action:
SetVal(OBJ.MyObject1.Value, 0);
SetVal(OBJ.MyObject2.Value, 1);