I notice that right clicking a tab to bring up a pop-up context menu by using the EVT_FLATNOTEBOOK_PAGE_CONTEXT_MENU switches to this tab. However, I'd prefer the current windows/gtk behaviour of popping up the context menu without changing focus. Is this possible?
I'd also like to change the icon that's displayed upon dragging a tab, to show an arrow in front of the tab that the tab being dragged will be positioned at. Is this easy to do?
Many thanks, it seems like a great replacement for the standard notebook
ยทยทยท
--
Steven Sproat, BSc
http://www.basicrpg.com/
Hi Steven,
2009/11/1 Steven Sproat:
I notice that right clicking a tab to bring up a pop-up context menu by
using the EVT_FLATNOTEBOOK_PAGE_CONTEXT_MENU switches to this tab.
However, I'd prefer the current windows/gtk behaviour of popping up the
context menu without changing focus. Is this possible?
I think this is a bug in FlatNotebook. I just commented out the line
that fires the page changing event.
I'd also like to change the icon that's displayed upon dragging a tab,
to show an arrow in front of the tab that the tab being dragged will be
positioned at. Is this easy to do?
Yes, you need to override the DrawDragHint method in your class
(assuming your class is a subclass of FlatNotebook).
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/