In a subdialog I'd like to set a default in an entry line. As it
is an edit field I tried
::method initDialog
self~newEdit(IDC_EDIT5)~setText("localhost")
alas with no success, the entry line stays blank. In contrast a
method called from within this subdialog containing as test
self~newEdit(IDC_EDIT5)~setText("set in subdlg")
works as expected.
-- UPDATE
Changing from RcDialog to UserDialog I found that I have to use
attrName of createEdit(), setting that variable shows correctly
the default value in the entry line. Remains how to get there with
RcDialog.
Just to show my struggle (and some minor questions) I do not
discard my primal append
-- END UPDATE
Looking for some advice in the manuals I found in 'Appendix C.
Dialog Creation Methods' of 'ooDialog User Guide Version 4.2.0':
"... the method invocations that the programmer must code and the
methods [...] that the programmer must provide." _Must_ is
stipulated twice.
So I added a
::method init
forward class (super) continue
(defineDialog is optional when using RcDialog) what changed
nothing observable.
Wading through the examples I found .InputBox with an optional
prevalue argument to initialize the entry line. But how may I
cluster four to ten of such input boxes together with some other
dialog elements?
What I try to do: a dialog window which offers to change two host
names and corresponding port numbers (hence four input fields),
optional the dotted IP address is shown, and as currently there is
no special input field for that it I use normal ones. Well,
restricting input to positive integers in the range of 0..255 or
49152...65535 respectively would be nice. Of cause I may use
MultiInputBox() but imagine a dialog with a stack of 10 input
lines for two IP addresses plus port numbers, it just looks not
too pro.
BTW, is there somewhere a complement to the a. m. 'Appendix C.
Dialog Creation Methods' but for the "closing" methods like
leaving just for a quick and unambiguous overview - ah, no, maybe
I only have to re-read chapter 3.10. 'Standard Event Handling
Methods' 5 more times.
Best,
M.
--------------------------------------------
Kostenlose E-Mail-Adresse mit unbegrenztem Speicherplatz für E-Mails, Free SMS
und OK-Drive, der Online-Festplatte.
Sicher Dir jetzt Deine Wunschadresse @ OK.de: www.ok.de
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Oorexx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-users