On Fri, Jul 1, 2011 at 1:01 PM, <os...@simsassociates.co.uk> wrote:
> **
> 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.
>
No, you misunderstand. Symbolic IDs *are* allowed, but the symbols must be
in the global .constDir. Since your program did not initialize the global
.constDir, IDR_PRODUCT_VIEW_MENU could not be resolved, and therefore is not
a *valid* symbolic ID. (It is of course a symbolic ID, just not valid in
this context.)
Look at the ScriptMenuBar.rex example program to get an idea of how this
works. You will see at the start of the program:
.application~useGlobalConstDir("O", "ScriptMenuBar.h")
You just need something similar in your program to use symbolic IDs with
menu objects.
--
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
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users