mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 19:49:18 +02:00
IDE: OI: use new csOwnerDrawEditableFixed and csOwnerDrawEditableVariable styles for combo boxes. Issue #31891
git-svn-id: trunk@55248 -
This commit is contained in:
parent
7f020e1b29
commit
6578db1024
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user