View Issue Details

IDProjectCategoryView StatusLast Update
0038627LazarusLCLpublic2021-05-26 20:23
ReporterReinhard Berger Assigned ToMichl  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformGTK2OSLinux 
Product Version2.1 (SVN) 
Fixed in Version2.1 (SVN) 
Summary0038627: Cannot focus a disabled or invisible window.
DescriptionWhen switching the pageindex of a TPageControl inside the event of TListview this exception appears in customforms.inc" Line 1925

Steps To Reproduce1.) 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 InformationNote : 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.

TagsNo tags attached.
Fixed in Revision65139
LazTarget-
WidgetsetGTK 2
Attached Files

Activities

Reinhard Berger

2021-03-15 08:46

reporter  

BUG.zip (110,619 bytes)

Michl

2021-05-26 20:23

developer   ~0131040

Fixed in Trunk revision 65139. Please test and close if OK.

Issue History

Date Modified Username Field Change
2021-03-15 08:46 Reinhard Berger New Issue
2021-03-15 08:46 Reinhard Berger File Added: BUG.zip
2021-05-26 20:22 Michl Assigned To => Michl
2021-05-26 20:22 Michl Status new => assigned
2021-05-26 20:23 Michl Status assigned => resolved
2021-05-26 20:23 Michl Resolution open => fixed
2021-05-26 20:23 Michl Fixed in Version => 2.1 (SVN)
2021-05-26 20:23 Michl Fixed in Revision => 65139
2021-05-26 20:23 Michl LazTarget => -
2021-05-26 20:23 Michl Widgetset GTK 2 => GTK 2
2021-05-26 20:23 Michl Note Added: 0131040