From cf1f0870d8623fc1ac64b76e2f845618703ec130 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Thu, 14 Oct 1999 09:29:20 +0000 Subject: [PATCH] Applied patches for AIX, Corrected prop dialog, Tabbing in parent top-level-windows no longer possible, git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/gtk/win_gtk.h | 2 +- include/wx/gtk1/win_gtk.h | 2 +- samples/minimal/minimal.cpp | 2 +- samples/proplist/test.cpp | 1 + src/common/fs_inet.cpp | 1 + src/generic/panelg.cpp | 4 ++++ src/generic/proplist.cpp | 6 +++--- 7 files changed, 12 insertions(+), 6 deletions(-) diff --git a/include/wx/gtk/win_gtk.h b/include/wx/gtk/win_gtk.h index f12bc34655..e48944e75f 100644 --- a/include/wx/gtk/win_gtk.h +++ b/include/wx/gtk/win_gtk.h @@ -31,7 +31,7 @@ typedef enum GTK_MYSHADOW_NONE, GTK_MYSHADOW_THIN, GTK_MYSHADOW_IN, - GTK_MYSHADOW_OUT, + GTK_MYSHADOW_OUT } GtkMyShadowType; typedef struct _GtkMyFixed GtkMyFixed; diff --git a/include/wx/gtk1/win_gtk.h b/include/wx/gtk1/win_gtk.h index f12bc34655..e48944e75f 100644 --- a/include/wx/gtk1/win_gtk.h +++ b/include/wx/gtk1/win_gtk.h @@ -31,7 +31,7 @@ typedef enum GTK_MYSHADOW_NONE, GTK_MYSHADOW_THIN, GTK_MYSHADOW_IN, - GTK_MYSHADOW_OUT, + GTK_MYSHADOW_OUT } GtkMyShadowType; typedef struct _GtkMyFixed GtkMyFixed; diff --git a/samples/minimal/minimal.cpp b/samples/minimal/minimal.cpp index 93536a6b4d..28d2a98225 100644 --- a/samples/minimal/minimal.cpp +++ b/samples/minimal/minimal.cpp @@ -86,7 +86,7 @@ enum { // menu items Minimal_Quit = 1, - Minimal_About, + Minimal_About }; // ---------------------------------------------------------------------------- diff --git a/samples/proplist/test.cpp b/samples/proplist/test.cpp index 3af946119a..a63a1e0425 100644 --- a/samples/proplist/test.cpp +++ b/samples/proplist/test.cpp @@ -166,6 +166,7 @@ void MyApp::PropertyListTest(bool useDialog) wxPropertyListView *view = new wxPropertyListView(NULL, + wxPROP_BUTTON_OK | wxPROP_BUTTON_CANCEL | wxPROP_BUTTON_CHECK_CROSS|wxPROP_DYNAMIC_VALUE_FIELD|wxPROP_PULLDOWN|wxPROP_SHOWVALUES); wxDialog *propDialog = NULL; diff --git a/src/common/fs_inet.cpp b/src/common/fs_inet.cpp index 83178ea59b..55677f10ff 100644 --- a/src/common/fs_inet.cpp +++ b/src/common/fs_inet.cpp @@ -44,6 +44,7 @@ limitation) #include "wx/url.h" #include "wx/filesys.h" #include "wx/fs_inet.h" +#include "wx/module.h" class wxInetCacheNode : public wxObject { diff --git a/src/generic/panelg.cpp b/src/generic/panelg.cpp index 2ed8f5148c..567a882de6 100644 --- a/src/generic/panelg.cpp +++ b/src/generic/panelg.cpp @@ -129,6 +129,10 @@ void wxPanel::OnNavigationKey( wxNavigationKeyEvent& event ) wxWindow *focussed_child_of_p = this; for ( wxWindow *p = GetParent(); p; p = p->GetParent() ) { + // we don't want to tab into a different dialog or frame + if ( focussed_child_of_p->IsTopLevel() ) + break; + if ( wxDynamicCast(p, wxPanel) ) { event.SetCurrentFocus( focussed_child_of_p ); diff --git a/src/generic/proplist.cpp b/src/generic/proplist.cpp index af0a32a664..399a819449 100644 --- a/src/generic/proplist.cpp +++ b/src/generic/proplist.cpp @@ -420,7 +420,7 @@ bool wxPropertyListView::CreateControls() { wxPanel *panel = (wxPanel *)m_propertyWindow; - wxSize largeButtonSize( 60, 25 ); + wxSize largeButtonSize( 70, 25 ); wxSize smallButtonSize( 23, 23 ); if (m_valueText) @@ -511,7 +511,7 @@ bool wxPropertyListView::CreateControls() m_windowCloseButton = new wxButton(panel, wxID_OK, _("OK"), wxPoint(-1, -1), largeButtonSize ); m_windowCloseButton->SetDefault(); m_windowCloseButton->SetFocus(); - bottomsizer->Add( m_windowCloseButton, 0, wxLEFT|wxTOP|wxBOTTOM, buttonborder ); + bottomsizer->Add( m_windowCloseButton, 0, wxALL, buttonborder ); } else if (m_buttonFlags & wxPROP_BUTTON_CLOSE) { @@ -529,7 +529,7 @@ bool wxPropertyListView::CreateControls() bottomsizer->Add( m_windowHelpButton, 0, wxALL, buttonborder ); } - mainsizer->Add( bottomsizer, 1, wxALIGN_RIGHT | wxEXPAND ); + mainsizer->Add( bottomsizer, 0, wxALIGN_RIGHT | wxEXPAND ); } panel->SetSizer( mainsizer ); -- 2.45.2