次のスクリプトがプッシュ ボタンを無効にしないのはなぜですか?
class ElementEnableTest : UIFrame {
void Action( object self ) {
self.LookUpElement("StopButton").DLGEnabled(0);
result( "button clicked\n" );
};
ElementEnableTest( object self ) {
TagGroup tgDialog = DLGCreateDialog( "" );
TagGroup tgButton = DLGCreatePushButton("stop","Action");
tgButton.DLGIdentifier("StopButton");
tgDialog.DLGAddElement( tgButton);
self.init( tgDialog );
self.Display( "test" );
};
};
alloc(ElementEnableTest);