Skip to main content
Version: 9.0.3

sb.setControlAttrs

sb.setControlAttrs(controlName, tagObject)

Set properties for a control. The controlName is the name of the control or a variable. The tagObject contains the tags and values for the properties to set.

x, y, width, height, hidden, active, zindex, findex, effect, mask_enabled

In the case of the focus index (findex), the initial value set in Storyboard Designer must be non-zero in order for it to be changed dynamically at runtime

The effect tag is a special attribute that can be used with OpenGL rendering platforms to apply a custom shader directly as an effect on the control object

Parameters​

ParameterTypeDescription
controlNamestringThe model full path of the control to change properties on
tagObjectobjectAn object with tags as the keys and the new values stored as the object's key values

Examples​

function setControlHidden() {
var dk_data = {hidden: 1};
sb.setControlAttrs("my_control", dk_data)
}