Gtk2: fixed show/hide of TListBox. issue #28341

git-svn-id: trunk@49420 -
This commit is contained in:
zeljko 2015-06-23 14:36:20 +00:00
parent 7e13107ac4
commit 53498f8e4f

View File

@ -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;