IDE: OI: use new csOwnerDrawEditableFixed and csOwnerDrawEditableVariable styles for combo boxes. Issue #31891

git-svn-id: trunk@55248 -
This commit is contained in:
ondrej 2017-06-05 19:48:29 +00:00
parent 7f020e1b29
commit 6578db1024

View File

@ -1858,12 +1858,15 @@ begin
else if paValueList in EditorAttributes then
begin
FCurrentEdit:=ValueComboBox;
if paCustomDrawn in EditorAttributes then
if (paCustomDrawn in EditorAttributes) and (paPickList in EditorAttributes) then
ValueComboBox.Style:=csOwnerDrawVariable
else if paPickList in EditorAttributes then
ValueComboBox.Style:=csDropDownList // text field should be readonly
else
ValueComboBox.Style:=csDropDown;
if paCustomDrawn in EditorAttributes then
ValueComboBox.Style:=csOwnerDrawEditableVariable
else if paPickList in EditorAttributes then
ValueComboBox.Style:=csOwnerDrawFixed
else
ValueComboBox.Style:=csOwnerDrawEditableFixed;
ValueComboBox.MaxLength:=NewRow.Editor.GetEditLimit;
ValueComboBox.Sorted:=paSortList in NewRow.Editor.GetAttributes;
ValueComboBox.Enabled:=not NewRow.IsReadOnly;