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);