wxAuiNotebook Tab Order  [SOLVED]

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.

wxAuiNotebook Tab Order

Postby miclus » Thu Oct 01, 2009 5:42 am

Hi. I'm trying to remember the tab order between program runs. I devised a scheme to save it as a string in the end, but the problem is the indices of the tabs don't change if you drag them. So, say I start with

S W P

and drag W to front

W S P

W will still have index of 1, so I can't seem to think of a way to get the final ordering on program close. Any ideas?
miclus
Can't get richer than this
Can't get richer than this
 
Posts: 735
Joined: Tue Mar 31, 2009 2:11 am

  [SOLVED]

Postby timg » Thu Oct 01, 2009 6:48 am

I was looking for something similar - I needed to get the pages in the order they are displayed after the user rearranged them.

I found this patch. It did what I needed, but from the comments, it's not quite perfect.

http://trac.wxwidgets.org/ticket/10848
timg
Earned some good credits
Earned some good credits
 
Posts: 148
Joined: Mon Jan 23, 2006 6:52 pm


Return to C++ Development

Who is online

Users browsing this forum: Yahoo [Bot] and 13 guests