Object Instructions
PLBCMP GUI Only
A number of object variables have been added to PL/B to support the Graphical User Interface. Accordingly, several new verbs have been added to manipulate these various objects.
|
Makes an object visible and allows the user to interact with it. | |
|
Set or clear a check mark beside a menu item. | |
|
Determine if a property is valid for an object. | |
|
Creates all necessary data structures for an object. | |
|
Hides the object from the user. | |
|
Delete an item from an object. | |
|
Release the data structures obtained for an object. | |
|
Prevents user interaction. | |
|
Enable or disable an object's drag and drop capabilities. | |
|
Allows user interaction. | |
|
Associates an event with a program execution label. | |
|
Sends an event to a specified object. | |
|
Load and activate a PLFORM. | |
|
Obtain the identification number of the object that currently has focus. | |
|
Obtain the value of an object item. | |
|
Obtain the value of a specific property. | |
|
Add a new item to an object. | |
|
Count objects in a COLLECTION. | |
|
Delete an object from a COLLECTION. | |
|
Retrieve an object from a COLLECTION. | |
|
Insert an object into a COLLECTION. | |
|
Changes the current focus. | |
|
Set the value of an object item. | |
|
Set the value of a specific property. |
The following is the minimum number of instructions required for object variables:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The other instructions change the state of an active object or to add or delete items in an object.
Following on the next page is a simple program to create a single button, a menu item and a submenu item. A check mark is placed beside the menu items when they are selected and the check mark is deleted when they are selected again.
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
![]() |