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.
|
Make an object visible and active. | |
|
Set or clear a check mark beside a menu item. | |
|
Determine if a property is valid for an object. | |
|
Create the data structures and load the data for an object. | |
|
Take an object out of active mode. | |
|
Delete an item from an object. | |
|
Remove an object from the screen. | |
|
Disable an object item allowing it to still be seen. | |
|
Enable or disable an object's drag and drop capabilities. | |
|
Enable an object item. | |
|
Register an event for an object. | |
|
Trigger an event for an object. | |
|
Load and activate a PLFORM. | |
|
Obtain the identification number of the object that currently has focus. | |
|
Obtain the name or value of an object item. | |
|
Obtain the various properties of an object. | |
|
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. | |
|
Change the focus to another object. | |
|
Change the name or value of an object item. | |
|
Change the various properties of an object. |
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.
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
![]() |