Many thanks, Mark. That worked a treat.  Btw, the error message says you can
use a symbolic resource:
Error 88.916:  Argument 2 must be one of a valid numeric or symbolic
resource ID; found "IDR_PRODUCT_VIEW_MENU"
But from what I understand, a symbolic ID is not now allowed.
 
> If I would work more on finishing the documentation, rather than coding,
things would be easier to use.  <grin>
 
 Yes indeedy, I agree. After a break due to boring stuff, I'm now focusing
on finishing Chapter 4, and then on to Chap 5.
 
Atb,
Oliver 
 

  _____  

From: Mark Miesfeld [mailto:[email protected]] 
Sent: 01 July 2011 17:07
To: Open Object Rexx Users
Subject: Re: [Oorexx-users] Binary Menu Bar (again)


On Fri, Jul 1, 2011 at 9:42 AM, Mark Miesfeld <[email protected]> wrote:
 
> Oliver,  hmm.  Can you send me the program so I can take a look.  Just
> send the zip file to my gmail account.
 
Oliver,
 
>From the program you sent, change the menu bar initialization to this and it
will work:
 
say "Creating menu bar"
menuBar = .BinaryMenuBar~new(self, 107, , self, .true)
 
The arguments to new() are:
 
new(menuSrc, menuID, helpID, attachTo, autoConnect, methName)
 
menuSrc is the source of the menu template.  In this case, since it is a
BinaryMenuBar, if the argument is a Rexx dialog object, that is saying the
menu template is in the resource DLL of the dialog.  (Which implies that the
dialog has to be a subclass of the ResDialog class.)
 
menuID is the resource ID of the menu.
 
helpID is the help resource ID for the menu.
 
attachTo  is a dialog object to attach the menu to.
 
autoConnect  if true says automatically connect all menu item events.
 
methName  if autoConnect; connect all events to this method name, rather
than a method constructed from  the label of the menu item.
 
 
If I would work more on finishing the documentation, rather than coding,
things would be easier to use.  <grin>
 
--
Mark Miesfeld
 
------------------------------------------------------------------------------
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