1
为什么下面的脚本没有禁用按钮,因为它应该这样做?如何启用 - 禁用对话框对象中的元素 - DLGEnabled
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);