mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-24 00:49:45 +02:00
Gtk2: fixed show/hide of TListBox. issue #28341
git-svn-id: trunk@49420 -
This commit is contained in:
parent
7e13107ac4
commit
53498f8e4f
@ -690,7 +690,11 @@ begin
|
||||
if AWinControl.HandleAllocated and AWinControl.HandleObjectShouldBeVisible and
|
||||
(TCustomListBox(AWinControl).ItemIndex = -1) then
|
||||
SetItemIndex(TCustomListBox(AWinControl), TCustomListBox(AWinControl).ItemIndex);
|
||||
inherited ShowHide(AWinControl);
|
||||
// issue #28341
|
||||
if AWinControl.HandleObjectShouldBeVisible then
|
||||
SetFont(AWinControl, AWinControl.Font);
|
||||
Gtk2WidgetSet.SetVisible(AWinControl, AWinControl.HandleObjectShouldBeVisible);
|
||||
InvalidateLastWFPResult(AWinControl, AWinControl.BoundsRect);
|
||||
end;
|
||||
|
||||
function gtk2ListBoxSelectionChangedAfter({%H-}Widget: PGtkWidget;
|
||||
|
Loading…
Reference in New Issue
Block a user