/////////////////////////////////////////////////////////////////////////////
-// Name: dynsash_switch.cpp
+// Name: contrib/samples/gizmos/dynsash_switch/dynsash_switch.cpp
// Purpose: Test custom scrollbar handling of wxDynamicSashWindow by
// creating a dynamic sash window where the client scrolls a
// a subwindow of the client window by responding to scroll
#include "wx/wx.h"
#endif
-#include <wx/app.h>
-#include <wx/frame.h>
-#include <wx/choice.h>
-#include <wx/dcclient.h>
-#include <wx/gizmos/dynamicsash.h>
-#include <wx/layout.h>
-#include <wx/scrolbar.h>
+#include "wx/app.h"
+#include "wx/frame.h"
+#include "wx/choice.h"
+#include "wx/dcclient.h"
+#include "wx/gizmos/dynamicsash.h"
+#include "wx/layout.h"
+#include "wx/scrolbar.h"
class SwitchDemo : public wxApp {
public:
wxScrollBar *hscroll = m_dyn_sash->GetHScrollBar(this);
wxScrollBar *vscroll = m_dyn_sash->GetVScrollBar(this);
- if (event.m_eventObject == hscroll || event.m_eventObject == vscroll) {
+ if (event.GetEventObject() == hscroll || event.GetEventObject() == vscroll) {
m_view->SetFocus();
} else {
event.Skip();