On Sun, Feb 17, 2013 at 9:42 AM, Art Heimsoth <artst...@artheimsoth.com>wrote:
> I am now running into difficulty with the menus. I am using the
> ScriptMenuBar sample from samples/dialog/menus as a sample
> guide. I changed the dlg = .SimpleDialog~new ... to use the
> .dll file instead of the .rc file. I changed the ::class statement
> to use ResDialog instead of RcDialog and then changed the
> menubar = .ScriptMenuBar to be .BinaryMenuBar to the following:
> menuBar = .BinaryMenuBar~new("ScriptMenuBar.dll", IDR_MENU_LV, , self,
> .true, self)
>
Hi Art,
This line works for me:
menuBar = .BinaryMenuBar~new(self, IDR_MENU_LV, , self, .true)
In a BinaryMenuBar, the last item, that you have as 'self', is the name of
a single method to connect all menu items to. That's different than the
.ScriptMenuBar.
This also works:
menuBar = .BinaryMenuBar~new("ScriptMenuBar.dll", IDR_MENU_LV, , self,
.true)
The reason I used the first line is that I happen to know that the DLL is
already loaded and internally, the code can just reference the already
loaded DLL file rather than re-load it. Probably saves 3 microseconds. ;-)
--
Mark Miesfeld
------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet,
is your hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials, tech docs,
whitepapers, evaluation guides, and opinion stories. Check out the most
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users