[ gtkD ] Question about mouse press event in Notebook ...

Mike Wey mike-wey at example.com
Mon Apr 22 11:27:12 PDT 2013


On 04/22/2013 12:05 PM, Super666666Super wrote:
> I'm programming in gtkD on Funtoo Linux.
> I want to catch mouse press event in Notebook, but I would like to don't
> touch the tabs and their contents.
> I'm using function: addOnButtonPress () in Notebook,
> but after that the tabs aren't reorderable ( previously yes ).
> Or similarly, how to catch mouse events only on the selected window /
> widget without touching it's children.
> Thanks for any help.

If you are not doing so already, try returning false from the function 
you pass to addOnButtonPress so it doesn't stop the event from propagating.

-- 
Mike Wey


More information about the Digitalmars-d mailing list