is there a way to send an event from a control to another ?

  1. last week

    Jean-Yves P

    Mar 15 Pre-Release Testers, Xojo Pro Europe (France, Besançon)

    Hi folks,

    I have a listbox (subclass) that has some (quite a lot) of menu handlers.
    then I added a search control, that has the focus when you open the window.
    I would like to redirect the menu handlers that occurs when the focus is in the search control to the listbox, in a simple way.
    is there one ?

    thanks.

  2. Norman P

    Mar 15 Pre-Release Testers, Xojo Pro we're off to see the wizard th...

    to send it to another control ? no
    they're like events - you cant send an event from one control to another

    have you tried adding a menu handler to your search field subclass so it gets a chance to handle the menu selection when it has focus ?

  3. Jean-Yves P

    Mar 15 Pre-Release Testers, Xojo Pro Europe (France, Besançon)

    well in fact it seems it would be easier to handle the menuhandlers in the window itself ?

  4. Clifford A

    Mar 15 Pre-Release Testers, Xojo Pro Charlotte, NC, USA

    I would think so... You can check which control has the focus if the menu behavior need to change

  5. Norman P

    Mar 15 Pre-Release Testers, Xojo Pro we're off to see the wizard th...

    @Jean-YvesPochez well in fact it seems it would be easier to handle the menuhandlers in the window itself ?

    thats possible to
    at least at that point you can check what control has focus etc and call one of their methods

or Sign Up to reply!