On 04/23/2013 08:13 AM, Super666666Super wrote:
"The begingMoveDrag call in mousepressevent makes it so that you drag
the window around when holding the left mouse on on of the tabs. And
that prevents you from reordering the tabs."
I understand, thanks for the valuable information.

"What are you trying to achieve with mousepressevent?"
I want to:
*have undecorated window with Notebook - ok, no problem
*reorderable tabs - ok, no problem
*begin move window when press on Notebook - I need that

You will need to add the event handler to the containers you are addin to the page. And in the case of the small example you posted, where you add only a single Label to the page it needs to be wrapped in an EventBox. Is far as i know that shouldn't be necessary when you are adding an other container to the page.

http://dpaste.dzfl.pl/adc350a4

Can I check if the mouse is above a tab in Notebook with mouse move /
motion event ?
If I could do it, then I can put a condition that checks it and assigns
a value to a Boolean variable.
Thus, in the event of pressing the left mouse button I check this
variable and dependent on this I can move a window or not.


--
Mike Wey

Reply via email to