TsDecimalSpinEdit Oddity

  • This topic has 4 replies, 2 voices, and was last updated 4 years ago by TAZ.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #69553
    TAZ
    Participant

    Hello.

    I have a sample project with only a TsDecimalSpinEdit with its Change Event that fires a message.

    If you have the DecimalPlaces set to 2 (which is the default value) and run the project, the Create Event message appears. The Change Event message naturally does not fire until a change event occurs.

    If you have the DecimalPlaces set to any value other than 2 (even 0) and run the project, the Change Event fire first then the Create Event message appears. Something is wrong. If you put code in the Change Event (under this condition) for anything that needs to be created like a string list you get an access violation.

    I tested this in both Tokyo and Rio.

    Thanks.

    Attachments:
    You must be logged in to view attached files.
    #69567
    Support
    Keymaster

    Hello and thank you for the demo project.
    Which AlphaControls version do you use? I’m trying to recompile and repeat it and haven’t a described issue.
    Can you uploade the Exe-file please? I will see a real version of the used package.

    #69573
    TAZ
    Participant

    I am using the latest version 15.15.

    I do not think I made things clear.

    In the IDE set sDecimalSpinEdit1 DecimalPlaces to 0 or 1 or any other number except 2.
    Run the program. Change event message occurs first, then Create event message occurs.

    In the IDE set sDecimalSpinEdit1 DecimalPlaces to 2.
    Run the program. Create event message occurs. Change event only occurs if there is a change.

    In the demo I set DecimalPlaces to 1.

    Attachments:
    You must be logged in to view attached files.
    #69614
    Support
    Keymaster

    Thank you, I can repeat and fix it now.

    #69653
    TAZ
    Participant

    Fixed, thanks.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘TsDecimalSpinEdit Oddity’ is closed to new replies.