SpinCtrlDouble does not respond to mousewheel

PyMapper Developer <[email protected]>
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <[email protected]>
Hello, 
   Should the SpinCtrlDouble control respond to the mousewheel the same as 
SpinCtrl?  In the test code attached, the spin control on the left will 
adjust up or down with the mousewheel when the control has focus.  The 
right control (wxSpinCtrlDouble) does not have the same behavior.

Tested on wxPython 4.0.0a2.  

Thanks,
Mike



-- 
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
spinCtrlDouble_test.py (text/x-python, 906 B)
import  sys

import  wx

#----------------------------------------------------------------------------

class MainFrame(wx.Frame):
  """"""

  #----------------------------------------------------------------------
  def __init__(self):
    """Constructor"""
    wx.Frame.__init__(self, None, title="Spin Control test.  SpinCtrl on left, SpinCtrlDouble on right", size=(800,600))
    bSizer = wx.BoxSizer(wx.HORIZONTAL)
    self.spinCtrlDbl = wx.SpinCtrlDouble(self,inc=5)
    self.spinCtrl = wx.SpinCtrl(self)
    bSizer.Add(self.spinCtrl)
    bSizer.Add(self.spinCtrlDbl)
    
    self.SetSizer(bSizer)
    self.Show()
    return
  
  def DeletePages(self, event):
    self.testNotebook.DeleteAllPages()
    otherPanel = wx.Window(self.testNotebook)
    self.testNotebook.AddPage(otherPanel, "NewPanel")
    return

if __name__ == "__main__":
  app = wx.App(False)
  frame = MainFrame()
  app.MainLoop()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.