wxEuphoria - set_event_handler

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

Hi. I'm having some trouble with clicking on a wxlistbox  and I am 
confused  about the event handler. I  am thinking that  within set event 
handler  that the "this"  is the wxFrame name, "id" is thename of the 
listbox, the "event" is ?, " rid" is the name of the procedure. I can 
get the buttons to work.
Thanks for any help
Jim


    set_event_handler ( object this, object id, object event, integer rid )

Category: Events <cid:part1.08050608.07080507 at ida.net>

Set up an event handler.

    * *this* is the object that receives the event. Often, it will be
      the top level frame that receives the event, as in the case of a
      menu item. When setting an event for a wxMenuItem
      <cid:part2.03040306.02070104 at ida.net> under Linux, *this* must be
      a sequence where the first element is the wxFrame
      <cid:part3.09020900.05020408 at ida.net> to which the wxMenuItem
      <cid:part2.03040306.02070104 at ida.net> belongs, and the second
      element is the wxMenu <cid:part5.08080504.05030404 at ida.net> to
      which the wxMenuItem <cid:part2.03040306.02070104 at ida.net>
      belongs. Under Windows, set_event_hander() will also accept *this*
      as a sequence.
    * *id* is the id of the item generating the event, such a a menu item.
    * *event* is an event constant, and
    * *rid* is the routine id of your event handler.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu