Fixed small bug in tab code WRT to having only

a single control in a panel.
  sliders now have keyboard handling.
  Missing headers for install (memconf.h and geometry.h).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2000-01-23 17:09:48 +00:00
parent 7502bdff47
commit 4ee1741f75
5 changed files with 26 additions and 9 deletions

View File

@@ -121,9 +121,11 @@ void wxPanel::OnSize(wxSizeEvent& WXUNUSED(event))
void wxPanel::OnNavigationKey( wxNavigationKeyEvent& event )
{
// there is not much to do if we have only one child (or not at all) and
// the event is propagated downwards if the event emitter was our parent
bool goingDown = event.GetEventObject() == GetParent();
// we're not interested in "notebook page change" events here
if ( (GetChildren().GetCount() < 2) || event.IsWindowChange() )
if ( event.IsWindowChange() )
{
wxWindow *parent = GetParent();
if ( !parent || !parent->GetEventHandler()->ProcessEvent(event) )
@@ -141,9 +143,6 @@ void wxPanel::OnNavigationKey( wxNavigationKeyEvent& event )
// next acceptable child
wxWindowList::Node *node, *start_node;
// the event is propagated downwards if the event emitter was our parent
bool goingDown = event.GetEventObject() == GetParent();
const wxWindowList& children = GetChildren();
// we should start from the first/last control and not from the one which
@@ -313,7 +312,8 @@ void wxPanel::SetFocus()
// think my addition to OnNavigationKey() above takes care of it.
// Keeping #ifdef __WXGTK__ for now, but please try removing it and see
// what happens.
// RR: Removed for now.
//
// RR: Removed for now. Let's see what happens..
if ( !SetFocusToChild() )
{