/* _binit: Initializes an object at design time */
BINIT: PUBLIC method;
call super(_self_,_method_);
call send(_self_,'_set_background_color_','background');
endmethod;
/* _tabIn: Invoked when object is made active */
TABIN: PUBLIC method;
dcl num rc;
mycolor=_self_._getAttributeValue('mycolor',rc);
call send(_self_,'_set_background_color_',mycolor);
_self_._update();
endmethod;
/* _tabOut: Invoked when object is made inactive */
TABOUT: PUBLIC method;
call send(_self_,'_set_background_color_','background');
_self_._update();
endmethod;作者: shiyiming 时间: 2003-10-17 22:52
不用那么复杂,我做了个简单的供你使用。 <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
_self_=_self_;
POSTINIT: PUBLIC method;
call super(_self_, '_postInit');
_self_.backgroundColor='Background';
endmethod;
TABIN: PUBLIC method;
_self_.backgroundColor='Red';
endmethod;
TABOUT: PUBLIC method;
_self_.backgroundColor='Background';
endmethod;作者: shiyiming 时间: 2003-10-20 09:22
谢谢!