Hi!
I am learning how to make my first spin control and wondering how I can
do it inside a menu item?
I am trying to go to a settings menu with several items and when
choosing that item in the menu to have a spin ctrl displayed with the min
and max values of that item selection inside of it.
Then destroy the spin ctrl after making the adjustments, but it seems I
get the event ignored.
I just do a spin setup and it goes on through it as if it does not
exist. There seems to be an error in the parms past into it. Such as
wsWindow expected... when getting the flag style controls.
#SET UP SPIN CTRL FOR THE SETTING SELECTED!!
self.spin_ctrl = wx.SpinCtrl(
self.menuId, 999, present, min, max, -1, -1,
wx.SP_ARROW_KEYS | wx.SP_WRAP
) #END OF SPIN CTRL DEFINITION!
self.spin_ctrl.Bind( wx.EVT_SPINCTRL, self.SetVoice, self.spin_ctrl)
So, what am I doing wrong? Or do I have to set this up when setting up
the menu bar?
Bruce