On Sat, Jul 2, 2011 at 1:41 PM, <[email protected]> wrote:
> **
> 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.
>
I realized that you probably did not change the .rc file to use numeric
IDs. If you do this in ScritpMenuBar.rex:
menuBar = .ScriptMenuBar~new("ScriptMenuBar.rc", 103, , , .true, self)
You need this in ScriptMenuBar.rc:
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
103 MENUEX
--
Mark Miesfeld
> 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
>
>
------------------------------------------------------------------------------
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