projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added wxXmlNode::InsertChildAfter and use it for (much) faster XML parsing (based...
[wxWidgets.git]
/
src
/
aui
/
auibook.cpp
diff --git
a/src/aui/auibook.cpp
b/src/aui/auibook.cpp
index fe3b52e7b2aafd50b0f2386838f0bfcc05a041ca..6ee896da22fce56e4e4a1c4dad0b84fa5fa9c78f 100644
(file)
--- a/
src/aui/auibook.cpp
+++ b/
src/aui/auibook.cpp
@@
-2581,7
+2581,19
@@
void wxAuiTabCtrl::OnChar(wxKeyEvent& event)
int newPage = -1;
int newPage = -1;
- if (key == WXK_RIGHT)
+ int forwardKey, backwardKey;
+ if (GetLayoutDirection() == wxLayout_RightToLeft)
+ {
+ forwardKey = WXK_LEFT;
+ backwardKey = WXK_RIGHT;
+ }
+ else
+ {
+ forwardKey = WXK_RIGHT;
+ backwardKey = WXK_LEFT;
+ }
+
+ if (key == forwardKey)
{
if (m_pages.GetCount() > 1)
{
{
if (m_pages.GetCount() > 1)
{
@@
-2591,7
+2603,7
@@
void wxAuiTabCtrl::OnChar(wxKeyEvent& event)
newPage = GetActivePage() + 1;
}
}
newPage = GetActivePage() + 1;
}
}
- else if (key ==
WXK_LEFT
)
+ else if (key ==
backwardKey
)
{
if (m_pages.GetCount() > 1)
{
{
if (m_pages.GetCount() > 1)
{
@@
-3070,7
+3082,7
@@
bool wxAuiNotebook::InsertPage(size_t page_idx,
wxASSERT_MSG(page, wxT("page pointer must be non-NULL"));
if (!page)
return false;
wxASSERT_MSG(page, wxT("page pointer must be non-NULL"));
if (!page)
return false;
-
+
page->Reparent(this);
wxAuiNotebookPage info;
page->Reparent(this);
wxAuiNotebookPage info;