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
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it.
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Oorexx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-users