Chapter Contents

Previous

Next
Widget Class: _select

Widget Class: _select



Responds to a user selection or modification


Syntax
Details

Syntax

objectName._select( );


Details

A widget's _select method executes automatically any time users select or modify the widget. The default _select method executes the SAS command associated with the widget. If no command has been assigned to the widget, the default _select method does nothing.

If a labeled section of code in the SCL program is associated with the widget, when the user selects or modifies the widget, the labeled section executes before the _select method is invoked. However, calling the _select method does not execute the labeled section.

If the value of _EVENT_ is 'C', the _select method does not execute the associated command.

To write custom Widget classes that perform more sophisticated processing when selected, you can override either the _select method or the _objectLabel method. The _objectLabel method has more flexibility, so in general that method should be overridden. See the _objectLabel method for more information.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.