Skip to content

OnPress is sent on TCastleButton.Enabled = false #413

@eugeneloza

Description

@eugeneloza

TCastleButton.OnPress is sent even to enabled=false
As OnPress/OnRelease are called from inherited Press function which happens before checking for Enabled
For some reason it doesn't send onRelease in exactly the same situation though, maybe because of VisibleChanged in SetEnabled?
All in all it results in unexpected behavior: The button is disabled but sends OnPress event, and doesn't send OnRelease which makes the button "pressed" until clicked again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlog - undecidedTasks that seem low priority we are not sure whether they need to be done at all.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions