Mark, 
 
There are two problems:
 
(1) The most important is that Exercise04a in the Guide was working fine
with the previous release of ooDialog 4.2, but does not work the latest
release. I've made no changes. It's an RcDialog, uses symbolic IDs, and does
not use the .Application class. So either there's a bug in ooDialog, or
there's a chnage in ooDialog such that I need to update Exercise04a.
 
(2) You said that for ScriptMenuBar I should add stuff into the .rc file in
order to use numeric IDs. Do you happen to know if I can get resEdit to do
that? If not, I'd prefer not to tell readers of the Guide that they need to
change the .rc file manually. I'd prefer to skip that option alltogether -
stick with symbolic IDs at least for RcDialog classes. 
 
Atb,
Oliver
 
PS: Is there a way for me to find out what the build number of my installed
ooDialog 4.2 is? 

  _____  

From: Mark Miesfeld [mailto:[email protected]] 
Sent: 03 July 2011 16:09
To: Open Object Rexx Users
Subject: Re: [Oorexx-users] Global ConstDir and RcDialog Menu


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

Reply via email to