What is the best way to forward reference to a routine when that routine
is the routine_id of setHandler?
Example:
In module1 I have a control MenuOpenReorder where I used
onClick[MenuOpenReorder]=routine_id("Click_MenuOpenReorder")
and a routine in program2 referenced this routine with
call_proc(onClick[MenuOpenReorder],{}).
Now I've got in module1 setHandler(MenuOpenReorder, w32HClick,
routine_id("Click_MenuOpenReorder")
For module2 what do I do now? I discovered a way but it requires a
global integer to use as the forward routine_id and making
MenuOpenReorder global in order to do this:
call_proc(menuOpenReorder_id,{MenuOpenReorder, w32HClick,{}) but I have
a feeling I'm doing this the hard way.
I can not refer directly to the routine name because module2 is included
prior to that routine in module1.
Any help would be appreciated.
Judith
|
Not Categorized, Please Help
|
|