Chapter Contents |
Previous |
Next |
Widget Class: _objectLabel |
Syntax | |
Details |
Syntax |
objectName._objectLabel( ); |
Details |
The _objectLabel method, which is normally used when an object is subclassed, is not called by SCL code. It is invoked automatically by the frame when the object is modified or selected. By default, the _objectLabel method runs the label associated with the object in the frame's SCL program.
This method can be overridden if preprocessing or postprocessing is needed for the object label section.
Example
To process information both before and after the object label in the frame's SCL program runs, you can override the _objectLabel method of the object and write your method similar to this:
length _method_ $ 40; OBJLAB: method; /*---- perform preprocessing -----*/ /*------------*/ /* some SCL statements here; */ /* some SCL statements here; */ /* some SCL statements here; */ /*--- run the object label section in the FRAME ---*/ _super_._method(); /*---- perform postprocessing --- */ /* more SCL statements here; */ /* more SCL statements here; */ /* more SCL statements here; */ endmethod;
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.