0
votes

For an Application I need the user to be disabled to click on a specific window, while he is still able to use a window, which is in front of the other window. In Delphi, this works perfectly fine with

ExampleForm.Enabled:= False;

but in Firemonkey it seems as if the enabled property does'n exist anymore. As well, it would be really helpful if it could disable the keyboard inputs etc. as well. I would really appreciate a solution for that problem, thanks for your time!

PS: I use the Delphi 10.3 Version

1
The FMX equivalent is HitTest if I recall.Jerry Dodge
@jerry dogde So i can simply disable the HitTest property of the window?user10794756
It's a bit more than that. It works differently. You'll need to study it and make sure it fits your exact requirements.Jerry Dodge
@jerry dogde According to docwiki.embarcadero.com/Libraries/Tokyo/en/… it should work for the biggest part, but i think it wouldn't disable keyboard inputs, right?user10794756
But @Dirty, you did not mention keyboard input at all in your question!Tom Brunberg

1 Answers

1
votes

In Firemonkey, you're typically expected to implement all of your controls inside of a TLayout or one of its descendants such as TGridLayout. As long as all of your controls are in there, you can disable its Enabled property. The form is really just a container and not the same type of control in FMX as it is in VCL.