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.
TCastleButton.OnPress is sent even to enabled=false
As OnPress/OnRelease are called from inherited
Pressfunction which happens before checking forEnabledFor 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
OnPressevent, and doesn't sendOnReleasewhich makes the button "pressed" until clicked again.