SetUIElement(Index,Value)

Sets an UI element inside X-Setup.

Parameters:

Index The index of the element to be set
Value The data that should be set

Remarks:

Depending of the type of your plugin, Value is either TRUE or FALSE (Checkboxes or Radiobuttons), where TRUE means checked and FALSE means not checked (default), or a string-value. The first element has the index of one. 

If your plug-in type is a listbox, you can remove an entry from the list if you set it to a zero-length string ("") in the apply event.

Example:

s=RegReadValue("HKCU\Software\TestValue1") 'read value from registry
Call SetUIElement(1,s) 'set the data

s=RegReadValue("HKCU\Software\TestValue2") 
If s="Yes" then 
 Call SetUIElement(1,true) 'set control checked
else
 Call SetUIElement(1,false) 'set control unchecked (not necessary because FALSE is the default)
End if