From: Oliver S. <oli...@si...> - 2011-08-11 14:01:36
|
In the defineDialog method of a UserDialog program (listed below), I have the following statement: self~createStaticText(902, 40, 40, 200, 40, , "ABC") But the text "ABC" does not appear. Is this a bug? Later, in a pushbutton event handler method, I have the statements: newText = self~newStatic(902) newText~setText("XYZ") When I click the button, the text "XYZ" does appear. If I now change the createStaticText() statement to: self~createStaticText(, 40, 40, 200, 40, , "ABC") then the text "ABC" does appear, but of course the program breaks at the ~newStatic(902) statement. Btw, this program used to work fine a couple of months ago. Thx, Oliver /* Test createStaticText */ dlg = .MyDialog2~new dlg~execute("SHOWTOP", IDI_DLG_OOREXX) ::requires "ooDialog.cls" ::CLASS 'MyDialog2' SUBCLASS UserDialog ::METHOD init forward class (super) continue self~create(30, 30, 257, 123, "Test Dialog", "CENTER") ::METHOD defineDialog self~createPushButton(901, 142, 99, 50, 14, "DEFAULT", "PushMe", PushMeClicked) self~createStaticText(902, 40, 40, 200, 40, , "ABC") --self~createStaticText(, 40, 40, 200, 40, , "ABC") ::METHOD PushMeClicked newText = self~newStatic(902) newText~setText("XYZ") return |