TsUpDown

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #37316
    HotICE
    Participant

    Hello,

    is there any function onChange on component TsUpDown?

    In previous version I use this component and event onClick was called after change,

    but now is called before change.

    Is there any solution?

    Thanx Peter

    #56133
    Support
    Keymaster

    Hello and thank you for the demo.

    Look my result on the screenshot, OnClick is called after OnChanging…

    Could you show your Exe-file, please?

    #56136
    HotICE
    Participant

    Hello,

    yes event is called after onChanging, but actual value of TsUpDown is still same like onChanging.

    On Your printscreen is visible that actual value is in every events 2017,

    only in onChangingEx is another parameter NewValue and this is 2018.

    So onClick is calling before change value to new value.

    But its look that this change was make in some version of Delphi.

    My project was made in Delphi 7 , and now I change my Delphi to XE3.

    And default TUpDown have same behavior with calling events.

    Thanks Peter

    #56164
    Support
    Keymaster

    You are right. I have checked behaviour of components under different Delphi version and I see, that behaviour of TsUpDown and standard TUpDown is equal.

    And it's clear, because TsUpDown is inherited from TUpDown.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.