Forum > LCL
Is .setfocus the same as OnEnter?
(1/1)
Elmug:
Good people,
I am wondering if setting the focus by code, on a component (TEdit for instance) is the equivalent entry so as to fire the OnEnter method?
Also, which event fires first: OnClick or OnEnter, when done physically?
Thanks for any replies.
felipemdc:
It probably depends on the platform. The LCL will simply send what the platform sends. Reordering events would be a huge mess, so it is not done. It's better not to relly on one or the other executing first.
Elmug:
Thanks Felipe,
Can it be counted that setfocus by code fires the OnEnter method?
Thanks!
Navigation
[0] Message Index