Cannot focus a disabled or invisible window.
Original Reporter info from Mantis: Reinhard Berger
-
Reporter name:
Original Reporter info from Mantis: Reinhard Berger
- Reporter name:
Description:
When switching the pageindex of a TPageControl inside the event of TListview this exception appears in customforms.inc" Line 1925
Steps to reproduce:
1.) Put a TPageControl on Form
2.) Add 2 Pages
3.) Add a TListView on Page1 with at last 1 entry (list style does not matter)
4.) Add Event on "DblClick" on Listview
procedure TForm1.ListView1DblClick(Sender: TObject);
begin
PageControl1.PageIndex:=1;
end;
Additional information:
Note : The exception appears on Qt4/Qt5/Win32 too, but when change the onDblClick procedure as follow :
procedure TForm1.ListView1DblClick(Sender: TObject);
begin
ListView1.Items[0].Selected:=False;
ListView1.Items[1].Selected:=False;
PageControl1.PageIndex:=1;
end;
The exception does then not appear on Qt4/Qt5/Win32.
Only GTK2 still gives an exception.
Mantis conversion info:
- Mantis ID: 38627
- OS: Linux
- Build: 64804
- Platform: GTK2
- Version: 2.1 (SVN)
- Fixed in version: 2.1 (SVN)
- Fixed in revision: 65139 (#cded431f)