Chapter Contents |
Previous |
Next |
Widget Class: _childPopup |
Syntax | |
Details |
Syntax |
objectName._childPopup( itemsList, objectID, selection ); |
Argument | Type | Use | Description |
---|---|---|---|
itemsList | Numeric | Update | specifies the identifier of a list containing items to display in the pop-up |
objectID | Numeric | Input | specifies the object identifier of the object that received the original _popup method |
selection | Numeric | Output | returns the index number of the selection made from the pop-up menu |
Details |
The _childPopup method is invoked by the _popup method of a child object. The list passed into this method can be modified (such as adding or removing items or making items inactive).
The sequence of events and method calls is
Since the _super_ eventually reaches the frame, the code following the _super_ is where the menu selection should be processed.
After the pop-up menu list is displayed, selection contains the selected menu item. If that selection belongs to this method, the selection should be handled and selection should be set to 0 before returning. The list should also be cleaned up (removing items that were added, adding items that were removed, making items active, and so on). It is important that the list and selection returned from this method be consistent with the list that was passed into the method.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.