RE: (invoking handler)

new topic     » topic index » view thread      » older message » newer message

Thanks


Martin Stachon wrote:
> --/func invokeHandler( integer id, integer event, sequence params)
> 
>     Martin
> 
> 
> ----- Original Message ----- 
> From: "Judith" <camping at txcyber.com>
> To: "EUforum" <EUforum at topica.com>
> Sent: Saturday, June 01, 2002 5:37 PM
> 
> 
> > 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
> 
> 
>

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu