Notebook: reordering tabs

Quentin Cosendey <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
     Hello,


I have been asked by some users if it was possible to change the order 
of the tabs in my application, using the keyboard with a shortcut like 
Ctrl+Shift+PageUp/Down, as it exists for example in Mozilla Firefox, as 
well as optionally working in MRU mode.


I'm using a wxAuiNotebook, and the doc says that you can drag&drop tabs 
with the mouse to change the order in which they appear. So I assumed 
that there were something to move pages programmatically, i.e. some 
MovePage or SwapPage methods, but I don't find anything.


Is that possible without the need to delete a page, recreate the window 
and insert it again at the new position, or is that the normal way to do 
it ?


Second question: is there a way to change the behavior of Ctrl+Tab / 
Ctrl+PageUp/Down to adopt a MRU way of working, like Alt+Tab works ?

Basically if I have page 1, 2 and 3.

I'm on page 1, Ctrl+Tab switch to page 2

I'm on page 2, Ctrl+Tab switch to page 1 instead of 3)

I'm on page 1, if I want to go to page 3, then I need to maintain Ctrl 
and press tab twice.

Now if I did that, I'm now on page 3, pressing Ctrl+Tab just once switch 
from page 1 to page 3.

I could probably implement that myself, but in fact I didn't do anything 
to have Ctrl+Tab and Ctrl+PageUp/Down working to change page, so I will 
need to override the default behavior somewhere.


Thank you for your answers.





-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/25907d3d-f01b-aaf6-81ff-96cbca89c533%40bluewin.ch.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.