/////////////////////////////////////////////////////////////////////////////
-// Name: cocoa/scrolbar.mm
+// Name: src/cocoa/scrolbar.mm
// Purpose: wxScrollBar
// Author: David Elliott
// Modified by:
// Created: 2004/04/25
// RCS-ID: $Id$
// Copyright: (c) 2004 David Elliott
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
+
#if wxUSE_SCROLLBAR
+#include "wx/scrolbar.h"
+
#ifndef WX_PRECOMP
#include "wx/app.h"
- #include "wx/scrolbar.h"
#endif //WX_PRECOMP
#import <AppKit/NSScroller.h>
#include "wx/log.h"
#include "wx/event.h"
#include "wx/window.h"
+ #include "wx/scrolbar.h"
#endif //WX_PRECOMP
#include "wx/containr.h"
-#ifdef __WXMAC__
- #include "wx/scrolbar.h"
-#endif
-
#ifdef __WXMSW__
#include "wx/radiobut.h"
#endif
return false;
}
-
#include "wx/statusbr.h"
#include "wx/toolbar.h"
#include "wx/dcclient.h"
-#endif //WX_PRECOMP
-
-#if defined(__WXMAC__) && wxUSE_SCROLLBAR
#include "wx/scrolbar.h"
-#endif
+#endif //WX_PRECOMP
#if wxUSE_CONSTRAINTS
#include "wx/layout.h"
#include "wx/dcclient.h"
#include "wx/button.h"
#include "wx/dialog.h"
+ #include "wx/scrolbar.h"
#endif // WX_PRECOMP
#include "wx/notebook.h"
#include "wx/tabctrl.h"
#include "wx/radiobox.h"
#include "wx/spinbutt.h"
-#include "wx/scrolbar.h"
#include "wx/statbox.h"
#include "wx/sizer.h"
#include "wx/stattext.h"
#include "wx/wxprec.h"
+#include "wx/scrolbar.h"
+
#ifndef WX_PRECOMP
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/settings.h"
#endif
-#include "wx/scrolbar.h"
#include "wx/mac/uma.h"
IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl)
#include "wx/dialog.h"
#include "wx/settings.h"
#include "wx/msgdlg.h"
+ #include "wx/scrolbar.h"
#endif
#include "wx/layout.h"
-#include "wx/scrolbar.h"
#include "wx/statbox.h"
#include "wx/tooltip.h"
#include "wx/statusbr.h"
menu->SetInvokingWindow(this);
menu->UpdateUI();
- if ( x == -1 && y == -1 )
+ if ( x == wxDefaultCoord && y == wxDefaultCoord )
{
wxPoint mouse = wxGetMousePosition();
x = mouse.x;
#include "wx/dcclient.h"
#include "wx/button.h"
#include "wx/dialog.h"
+ #include "wx/scrolbar.h"
#endif // WX_PRECOMP
#include "wx/notebook.h"
#include "wx/tabctrl.h"
#include "wx/radiobox.h"
#include "wx/spinbutt.h"
-#include "wx/scrolbar.h"
#include "wx/statbox.h"
#include "wx/sizer.h"
#include "wx/stattext.h"
#pragma hdrstop
#endif
+#include "wx/scrolbar.h"
+
#ifndef WX_PRECOMP
#include "wx/intl.h"
#include "wx/log.h"
#endif // WX_PRECOMP
-#include "wx/scrolbar.h"
#include "wx/mac/uma.h"
IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl)
#include "wx/dialog.h"
#include "wx/settings.h"
#include "wx/msgdlg.h"
+ #include "wx/scrolbar.h"
#endif
#include "wx/layout.h"
#include "wx/listbox.h"
-#include "wx/scrolbar.h"
#include "wx/statbox.h"
#include "wx/notebook.h"
#include "wx/tabctrl.h"
#if wxUSE_SCROLLBAR
+#include "wx/scrolbar.h"
+
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/settings.h"
#endif
-#include "wx/scrolbar.h"
#include "wx/msw/private.h"
#if wxUSE_EXTENDED_RTTI
/////////////////////////////////////////////////////////////////////////////
-// Name: msw/slider.cpp
+// Name: src/msw/slider.cpp
// Purpose: wxSlider, using the Win95 (and later) trackbar control
// Author: Julian Smart
// Modified by:
wxEND_FLAGS( wxSliderStyle )
-IMPLEMENT_DYNAMIC_CLASS_XTI(wxSlider, wxControl,"wx/scrolbar.h")
+IMPLEMENT_DYNAMIC_CLASS_XTI(wxSlider, wxControl,"wx/slider.h")
wxBEGIN_PROPERTIES_TABLE(wxSlider)
wxEVENT_RANGE_PROPERTY( Scroll , wxEVT_SCROLL_TOP , wxEVT_SCROLL_CHANGED , wxScrollEvent )
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#include "wx/scrolbar.h"
+
#ifndef WX_PRECOMP
#include "wx/utils.h"
#endif
-#include "wx/scrolbar.h"
#include "wx/os2/private.h"
IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl)
#if wxUSE_SCROLLBAR
+#include "wx/scrolbar.h"
+
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/settings.h"
#endif
-#include "wx/scrolbar.h"
#include "wx/palmos/private.h"
#if wxUSE_EXTENDED_RTTI
wxEND_FLAGS( wxSliderStyle )
-IMPLEMENT_DYNAMIC_CLASS_XTI(wxSlider, wxControl,"wx/scrolbar.h")
+IMPLEMENT_DYNAMIC_CLASS_XTI(wxSlider, wxControl,"wx/slider.h")
wxBEGIN_PROPERTIES_TABLE(wxSlider)
wxEVENT_RANGE_PROPERTY( Scroll , wxEVT_SCROLL_TOP , wxEVT_SCROLL_ENDSCROLL , wxScrollEvent )
#include "wx/timer.h"
#include "wx/settings.h"
#include "wx/msgdlg.h"
+ #include "wx/scrolbar.h"
#endif
#include "wx/layout.h"
#include "wx/listbox.h"
#include "wx/scrolwin.h"
-#include "wx/scrolbar.h"
#include "wx/module.h"
#include "wx/menuitem.h"
#include "wx/fontutil.h"
int direction, ascent, descent2;
XCharStruct overall;
- int slen = string.Len();
+ int slen = string.length();
XTextExtents((XFontStruct*) pFontStruct, (char*) string.c_str(), slen,
&direction, &ascent, &descent2, &overall);
/////////////////////////////////////////////////////////////////////////////
-// Name: xh_scrol.cpp
+// Name: src/xrc/xh_scrol.cpp
// Purpose: XRC resource for wxScrollBar
// Author: Brian Gavin
// Created: 2000/09/09
#if wxUSE_XRC && wxUSE_SCROLLBAR
#include "wx/xrc/xh_scrol.h"
-#include "wx/scrolbar.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/scrolbar.h"
+#endif
IMPLEMENT_DYNAMIC_CLASS(wxScrollBarXmlHandler, wxXmlResourceHandler)