Is it possible to hide a field if a "tab" in a tab control is active?
GetLayoutObjectAttribute ( "nameOfTabPanel" ; "isFrontPanel" )
would be the condition, but there need onObjectModify trigger for tab control to refresh object (the field) or window.
Reading the help of Get(ActiveLayoutObjectName), I felt the terminology is broken, that "Active segment of a button bar has "isActive" attribute, but can't get its name as Get(ActiveLayoutObjectName)" .
Clicking tab make the tab panel front, but not active nor focused.
Clicking button in button bar make it active, but not focused.
Going to button in button bar make it focused, but not active.
There is a script trigger: OnPanelSwitch that is tripped each time you select a different panel in a tab control. There are a pair of get functions that return either the index number or the index numder and object name of either that panel that is front when the panel changes or the panel that will become the front when the panel changes.
The script can thus determine if the panel is question is now moving to the front, modify a variable that controls the field's visibility (via object when expression that refers to the variable in a calculation) and refreshes the field's visibility with a refresh object script call.
Retrieving data ...