LCL Carbon: fixed bug #0011688: Comboboxes don't close when item was selected - force hide drop/down list when item selected

git-svn-id: trunk@16470 -
This commit is contained in:
tombo 2008-09-07 13:58:56 +00:00
parent 13edb8ff11
commit dbad42af76

View File

@ -640,7 +640,7 @@ begin
CreateCFString(AParams.Caption, CFString);
try
if OSError(HIComboBoxCreate(ParamsToHIRect(AParams), CFString, nil, nil,
kHIComboBoxAutoSizeListAttribute, Widget),
kHIComboBoxAutoSizeListAttribute or kHIComboBoxAutoDisclosureAttribute, Widget),
Self, SCreateWidget, 'HIComboBoxCreate')then RaiseCreateWidgetError(LCLObject);
finally
@ -719,6 +719,11 @@ begin
FItemIndex := AIndex;
LCLSendSelectionChangedMsg(LCLObject);
end;
// force hide drop-down list and notification
DropDownTimer(Self);
DropDown(False);
DropDownTimer(Self);
end;
{------------------------------------------------------------------------------