I'm changing the exercises for the Guide to bring them up to date with the
new approach for menus given the availability of the .Application class.
The CustomerView exercise is an RcDialog, and now works fine having placed
.Application~useGlobalConstDir("O", "CustomerView.h")
at the start of the app (I assume "O" is short for "Only"). However, if I
delete the .Application statement and replace the symbolic ID in
.ScriptMenuBar~new with a numeric ID, it does not work. Would this have
anything to do with my use of dlgData in the ~new fopr the dialog, which is
still:
dlg = .CustomerView~new("customerView.rc", IDD_DIALOG1, dlgData.,
"customerView.h")
However, ProductView, a ResDialog, works fine either way.
I'm trying to understand the new rules for each of RcDialog and ResDialog
since they differ. So several questions arise:
(1) For RcDialogs, can they work without using the .Application approach?
and still get menus working OK? I tried using the numeric ID without the
.Application, but it barfed. Was it my inclusion of dlgData?
(2) Suppose I have two different in an app, each in a separate file, and of
course each with different .h files. How would I use .Application to provide
resolution for two (or more) .h files?
Thanks,
Oliver
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Oorexx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-users