13. Creating Dynamic Frames : How You Can Change Field and Frame Appearance and Behavior : How You Can Set Field and Menu Biases : How You Can Use the CurBias Attribute for Composite Fields
 
Share this page                  
How You Can Use the CurBias Attribute for Composite Fields
When you set the CurBias attribute of a composite field, it indirectly affects the biases of its child fields. Based on the new bias of the composite field, OpenROAD sets a maximum bias for the children.
For example, if you change the CurBias attribute for a table field from FB_CHANGEABLE to FB_VISIBLE, the user cannot access any of the columns in the table, even though their individual biases are still FB_CHANGEABLE.
This maximum bias is changed when you reset the CurBias for the composite field. For example, if you reset the CurBias for the table field to FB_CHANGEABLE, the user can then access any of the columns in the table (so long as their individual bias setting allows it).
Changing the CurBias attribute also changes the field's bias for the current value of CurMode. For example, if the frame's CurMode setting is FM_READ and you set CurBias for a field to FB_INVISIBLE, the ReadBias attribute for that field is also changed to FB_INVISIBLE.
For more information about changing a field or menu item's bias, see the Language Reference Guide.