ENABLEITEM


7.8.5, PLBCMP GUI Only

square.png Objects

 

The ENABLEITEM instruction allows an object to generate events. This instruction reverses the effect of a DISABLEITEM instruction. The instruction uses the following format:

 

 

[label]

ENABLEITEM

{object}[,{item}]

 

Where:

label

Optional. A Program Execution Label.

object

Required. A previously defined and created object or pointer to an object that is enabled.

item

Optional. A Numeric Variable, numeric literal, or Expression that indicates the item within the object that is enabled.

Flags Affected: NONE

Note the following:

  1. If {item} is not specified, the default item number of zero is used.

  2. The entire object is enabled if an item number of zero is used and the object is not a DIALOG object.

  3. Only COMBOBOX, DIALOG, FLOATMENU, MENU, POPUPMENU, and SUBMENU objects may have individual items enabled.

  4. No action occurs if the item number is not valid or the item is already enabled.

  5. An object must be CREATEd before using ENABLEITEM. If this is not done, a runtime error of O105 is generated.

  6. If insufficient memory is available to perform the operation, a runtime error of O106 is generated.

 

 

See Also: Example Code, DISABLEITEM, Object Instructions

 



PL/B Language Reference DRAGITEM EVENTREGISTER