How You Can Change Field and Frame Appearance and Behavior
Every field and menu item in OpenROAD has a bias. Biases let you change the way the user can interact with a field under certain conditions. The field's bias determines whether the field is visible and how the user can interact with it. For example, when a field is set to the Changeable bias, the user can change the data in the field. When the same field is set to the Visible bias, the user can see the field but is unable to select it.
The bias of a field also determines which events it can receive. For example, when a field is set to the DragSegment bias, it can receive a DragSegment event. When set to any other bias, it cannot receive this event.
In addition to providing bias settings for every field and menu item, OpenROAD provides six different modes for every frame. Modes are sets of biases that let you change the appearance and behavior of several fields on a form with a single line of code.
The following items are ways to change the bias for a field. Using these following techniques depends on how many fields you want to change and when you want to change them:
• Setting the CurBias attribute immediately changes a specific field's bias regardless of the current frame mode.
• Changing the frame mode simultaneously changes the bias of several or all fields to predefined biases.
• Setting the mode-bias attribute changes the field's bias when the frame changes to a specific mode.
These techniques are discussed in the following sections.