Here is the script of a checkbox and an entry box in a dialog. I am wondering how to disable the entry while the checkbox is not selected.
class TestUI : UIFrame {
number true, false
TestUI(object self) {
true = 1;
false = 0;
result("[TestUI] constructed\n")
};
~TestUI(object self) {
result("[TestUI] destructed\n")
};
void CreateDialog(object self) {
TagGroup dialog = DLGCreateDialog("Test")
TagGroup cb = DLGCreateCheckbox("IsCheck",false).DLGAnchor("West")
TagGroup parameter
TagGroup entry = DLGCreateRealField("Parameter : ",parameter,5,8,1)
dialog.DLGAddElement(cb)
dialog.DLGAddElement(entry)
self.init(dialog).Display("TestUI")
};
};
{
alloc(TestUI).CreateDialog()
}
Thanks in advance.

