mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
Fix scrolling regression in DynamicSashWindow
This commit is contained in:
@@ -109,6 +109,9 @@ Changes in this release include the following:
|
|||||||
* Fix problems of the wrong C++ method being called in wx.ProgressDialog on MS
|
* Fix problems of the wrong C++ method being called in wx.ProgressDialog on MS
|
||||||
Windows. (#701)
|
Windows. (#701)
|
||||||
|
|
||||||
|
* Fixed how the scrollbar events are captured in DynamicSashWindow in order to
|
||||||
|
fix regression in the sample. (#687)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -110,9 +110,9 @@ class SimpleView(wx.Panel):
|
|||||||
def runTest(frame, nb, log):
|
def runTest(frame, nb, log):
|
||||||
|
|
||||||
if True:
|
if True:
|
||||||
win = gizmos.DynamicSashWindow(nb, -1, #style=0
|
win = gizmos.DynamicSashWindow(nb, -1, style=0
|
||||||
#| wxDS_MANAGE_SCROLLBARS
|
#| gizmos.DS_MANAGE_SCROLLBARS
|
||||||
#| wxDS_DRAG_CORNER
|
| gizmos.DS_DRAG_CORNER
|
||||||
)
|
)
|
||||||
|
|
||||||
view = TestView(win, -1, log)
|
view = TestView(win, -1, log)
|
||||||
|
|||||||
@@ -890,19 +890,16 @@ class _DynamicSashWindowLeaf(wx.EvtHandler):
|
|||||||
self.Bind(_EVT_DYNAMIC_SASH_REPARENT, self.OnReparent)
|
self.Bind(_EVT_DYNAMIC_SASH_REPARENT, self.OnReparent)
|
||||||
|
|
||||||
if self.m_impl.m_window.GetWindowStyle() & DS_MANAGE_SCROLLBARS:
|
if self.m_impl.m_window.GetWindowStyle() & DS_MANAGE_SCROLLBARS:
|
||||||
self.m_hscroll.SetEventHandler(self)
|
for sbar in [self.m_hscroll, self.m_vscroll]:
|
||||||
self.m_vscroll.SetEventHandler(self)
|
sbar.Bind(wx.EVT_SET_FOCUS, self.OnFocus)
|
||||||
|
sbar.Bind(wx.EVT_SCROLL_TOP, self.OnScroll)
|
||||||
|
sbar.Bind(wx.EVT_SCROLL_BOTTOM, self.OnScroll)
|
||||||
self.Bind(wx.EVT_SET_FOCUS, self.OnFocus)
|
sbar.Bind(wx.EVT_SCROLL_LINEUP, self.OnScroll)
|
||||||
self.Bind(wx.EVT_SCROLL_TOP, self.OnScroll)
|
sbar.Bind(wx.EVT_SCROLL_LINEDOWN, self.OnScroll)
|
||||||
self.Bind(wx.EVT_SCROLL_BOTTOM, self.OnScroll)
|
sbar.Bind(wx.EVT_SCROLL_PAGEUP, self.OnScroll)
|
||||||
self.Bind(wx.EVT_SCROLL_LINEUP, self.OnScroll)
|
sbar.Bind(wx.EVT_SCROLL_PAGEDOWN, self.OnScroll)
|
||||||
self.Bind(wx.EVT_SCROLL_LINEDOWN, self.OnScroll)
|
sbar.Bind(wx.EVT_SCROLL_THUMBTRACK, self.OnScroll)
|
||||||
self.Bind(wx.EVT_SCROLL_PAGEUP, self.OnScroll)
|
sbar.Bind(wx.EVT_SCROLL_THUMBRELEASE, self.OnScroll)
|
||||||
self.Bind(wx.EVT_SCROLL_PAGEDOWN, self.OnScroll)
|
|
||||||
self.Bind(wx.EVT_SCROLL_THUMBTRACK, self.OnScroll)
|
|
||||||
self.Bind(wx.EVT_SCROLL_THUMBRELEASE, self.OnScroll)
|
|
||||||
|
|
||||||
layout = wx.LayoutConstraints()
|
layout = wx.LayoutConstraints()
|
||||||
size = self.m_hscroll.GetBestSize()
|
size = self.m_hscroll.GetBestSize()
|
||||||
|
|||||||
Reference in New Issue
Block a user