Can't focus a control in TPageControl.OnChange
Original Reporter info from Mantis: etrusco
-
Reporter name: Flávio Etrusco
Original Reporter info from Mantis: etrusco
- Reporter name: Flávio Etrusco
Description:
Focusing a control located in the tabsheet being activated in TPageControl.OnChange doesn't work (no control gets focus). Example attached.
Also:
- TTabSheet.OnEnter never gets triggered;
- SetFocus in TTabSheet.OnShow in the initially selected page raises "cannot focus hidden control";
- SetFocus in TTabSheet.OnShow not in the initially selected page has no effect;
- "ActiveControl := X" in TTabSheet.OnShow in the initially selected page works (only at start);
- "ActiveControl := X" in TTabSheet.OnShow not in the initially selected page selects the control but doesn't show focus;
- Don't know whether is correct behavior or not: TPageControl.OnChange doesn't trigger for initial load.
Mantis conversion info:
- Mantis ID: 16388
- Version: 0.9.29 (SVN)
- Fixed in version: 0.9.30
- Monitored by: » luizamerico (Luiz Americo)