mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 21:59:16 +02:00
LCL: Fix inability to resize the height of a TCombobox having style csSimple at designtime in order to show the item listbox. Issue #37679. Patch by mgr.inz.Player.
git-svn-id: trunk@63857 -
This commit is contained in:
parent
afa0f73049
commit
b4cc95fc28
@ -1113,6 +1113,8 @@ end;
|
|||||||
class procedure TWin32WSCustomComboBox.SetStyle(const ACustomComboBox: TCustomComboBox; NewStyle: TComboBoxStyle);
|
class procedure TWin32WSCustomComboBox.SetStyle(const ACustomComboBox: TCustomComboBox; NewStyle: TComboBoxStyle);
|
||||||
begin
|
begin
|
||||||
RecreateWnd(ACustomComboBox);
|
RecreateWnd(ACustomComboBox);
|
||||||
|
if (NewStyle = csSimple) and (csDesigning in ACustomComboBox.ComponentState) then
|
||||||
|
ACustomComboBox.Constraints.SetInterfaceConstraints(0,0,0,0);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
class procedure TWin32WSCustomComboBox.SetReadOnly(const ACustomComboBox: TCustomComboBox;
|
class procedure TWin32WSCustomComboBox.SetReadOnly(const ACustomComboBox: TCustomComboBox;
|
||||||
|
Loading…
Reference in New Issue
Block a user