Re: win32lib: Scope of event handlers?

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

I perhaps have figured this out.

It appears that setting onClick must not be done inside a procedure. Is that
true?

When I moved all references to onClick outside routines, things were ok.

===== Original Message from Euphoria Programming for MS-DOS
<EUPHORIA at LISTSERV.MUOHIO.EDU> at 8/15/00 7:12 am
>I've moved some routines into an include file and find that they now do not
>work for reasons that are a mystery to me.
>
>One of the procedures creates a number of PushButtons, storing the handles
>in a sequence and setting onClick to another routine in the include file,
>using routine_id. It sets up the buttons just fine, but the onClick routines
>don't work.
>
>When the same code is in the main file, it seems to work just fine. The
>procedures are declared global.
>
>Any idea what the problem could be?
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu