TWinControl.CanFocus returns true for controls on invisible forms.
TWinControl.CanFocus returns true for controls on invisible forms.
I haven't found this issue at quality so I decided to resend it. It drives me mad all the time I use CanFocus/SetFocus. Feel free to upvote the issue :)
https://quality.embarcadero.com/browse/RSP-11285
I haven't found this issue at quality so I decided to resend it. It drives me mad all the time I use CanFocus/SetFocus. Feel free to upvote the issue :)
https://quality.embarcadero.com/browse/RSP-11285
Yep, been running into this a lot, quite annoying.
ReplyDeleteFunfact: While VCL throws exceptions in SetFocus, .Net does NOT. And Windows allows setting focus to an invisible control :P
ReplyDeleteAlexander Benikowski
ReplyDeleteOf course Windows does, it's just a PostMessage(WM_SETFOCUS)