TsCurrencyEdit KeyPress #13

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #37606
    Stephane Senecal
    Participant

    I have an event on key pressed for a TsCurrencyEdit.

    When I receive a cariage return (#13), I set Key to #0 to prevent the Beep and close the form.

    In the code of TsCustomNumEdit, the Key is not verified after calling inherited KeyPress(Key) to check if it has been changed and #13 is considered not being a valid character so it triggers a Beep.

    Stephane Senecal
    CIS Group
    Delphi programmer since 2001

    #57097
    Support
    Keymaster

    Hello

    I will check it soon.

    #57098
    Stephane Senecal
    Participant

    Same problem with TsBaseSpinEdit.

    Stephane Senecal
    CIS Group
    Delphi programmer since 2001

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