Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
EditorSpinbuttonClick Events do not fire in UltraNumericEditor
posted

I try to use the Spinbutton functionality of UltraNumericEditor. Since that functionality is really poorly implemented (come on, guys - how hard can it be to integrate some kind of Increment property that allows in-/decrementing in steps others than just 1....), i'm trying to implement that myself, using the EditorSpinbuttonClick event. Problem is - that event never fires. In fact, there seems to be no possibility of intercepting the spinbutton clicks at all. Juuuuust great... :-(

Any hints to why that wouldn't work? Anyone out there with similar problems? I'm using NetAdvantage 8.1 under VS 2008 on Vista, btw...

 

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi,

        It's actually not that simple to implement an increment, because right now, the control increments and decrements the appropriate section based on the position of the cursor. And since the control is flexible and has a variable number of sections (based on the mask), exposing the increments is not a trivial matter.

        The EditorSpinButtonClick event does not fire, because the built-in spin button you see on the control is not an EditorSpinButton.So what you need to do it turn off the normal spin button (SpinButtonDisplayStyle = Never). Then use the ButtonsRight property to add a SpinEditorButton. Clicking this button will fire the EditorSpinButtonClick event. Smile

Children