On Wed, Oct 21, 2009 at 11:06 AM, Michael Gerbracht <smartma...@arcor.de> wrote:

> I have a follow up question now:
> I would like to use the same menu on different TreeCtrl panes so I need a way
> to find out on which of the windows the mouse button was pressed.

I would probably bind a different function to different panes, and
launch the same menu from it. (Or maybe use a function which generates
the menu on demand). I am not sure  if this is good style, but it is
so easy to use small anonymous callback functions....

The menu generating function approach would make it easy to know the
originating window also at that point where the user selects an entry
from the menu.

   Eero

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to