Config Folder

The code below displays the first tab of a tag's properties folder.

ConfigOperator [
    { Details } 
    WTitle = "Address Details"; 
    If !Valid(TmpCfg); 
    [ 
TmpCfg = FindVariable("ConfigFolder", Scope(\Code, "Operator"), 0, 0); 
          IfThen(!Valid(Cast(TmpCfg,11)), 
          TmpCfg = GetDefaultValue(TmpCfg); 
          TmpCfg = Scope(\Code, TmpCfg); 
          ); 
          TmpCfg = Cast(TmpCfg, 11); 
          Trig = 0; 
    ] 
    GUITransform(0, 1, 1, 0, 
    1 – (LHS – 22), BOT – 5, 
    RHS, 1 – (TOP – 35), 
    1 { Scaling }, 
   0, 0 { Movement },
   1, 0 { Visibility, scaling },
    0, 0, 0 { Selectability }, 
    Call(TmpCfg, Parms, 1, &Trig)); 
    If Move && Trig ==0; 
    [ 
          Move = 0; 
          ForceState(NextState); 
          TmpCfg = Invalid; 
          Trig = Invalid; 
    ] 
]

Note that the input trigger returned by ConfigFolder is inverted with respect to individual widgets, so that in this case we have to reset the trigger before the next state.