I was checking the params for .ScripMenuBar in the code
(https://oorexx.svn.sourceforge.net/svnroot/oorexx/main/trunk/extensions/pla
tform/windows/oodialog/oodMenu.cpp) and noticed that the params do not seem
to match those that I'm currently using (and which work ok). Am I
mis-reading something? Or is a change in store?
Code comment in oodMenu.cpp says:
/** ScriptMenuBar::init()
*
* Initializes a .ScriptMenuBar object. The underlying menu object is
created
* in memory by parsing a resource script file. The script is parsed and
* converted to a HMENU at once.
*
* @param rcFile [required] The file name of the resource script.
*
* @param id [optional] The resource id of the menu. If
omitted,
* then the first menu found in the resource file is
used.
*
* @param helpID [optional] Context help ID for the menu. The
default
* is 0 indicating no help ID.
*
* @param count [optional] The count of menu items. This
determines
* the size of memory allocated for the template. The
* default if omitted is 100.
*
* @param connect [optional] If true, each menu command item in the
menu
* is connected to a method. The name of the method
is
* composed from the menu item text. This uses the
* connectionRequested method of connecting menu
items.
* The default is false.
*
* @param attachTo [optional] If specified attach this menu to the
* dialog. If specified, attachTo has to be a
* .PlainBaseDialog or subclass. If not, an exception
is
* raised.
*
* @return No return.
*
* @remarks Raises exceptions for all failures. If no exceptions, the
menu is
* created successfully.
My code is:
menuBar = .ScriptMenuBar~new("CustomerView.rc", "IDR_MENU1", self, , ,.true)
The 3rd and 6th params (values "self" and ".true" respectively) so not seem
to be those documented in the .cpp file.
Can I assume a future build of ooDialog will require me to change my code?
No problem in that, but would be useful to know roughly when the change may
occur.
Many thanks,
Oliver Sims
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery,
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now.
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Oorexx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-users