mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 19:40:20 +02:00
LCL: Remove also public property TCustomComboBox.ReadOnly.
git-svn-id: trunk@63112 -
This commit is contained in:
parent
ef165a7ed0
commit
47bfab75ef
@ -1217,7 +1217,9 @@ end;
|
||||
destructor TExternalTools.Destroy;
|
||||
begin
|
||||
RunExternalTool:=nil;
|
||||
DebugLn('TExternalTools.Destroy: Terminating All.');
|
||||
TerminateAll;
|
||||
DebugLn('TExternalTools.Destroy: Entering critical section.');
|
||||
EnterCriticalSection;
|
||||
try
|
||||
if fRunning.Count>0 then
|
||||
|
@ -248,7 +248,6 @@ type
|
||||
property ParentFont;
|
||||
property ParentShowHint;
|
||||
property PopupMenu;
|
||||
property ReadOnly;
|
||||
property ShowHint;
|
||||
property Style;
|
||||
property StyleEx;
|
||||
|
@ -189,11 +189,6 @@ begin
|
||||
Result := FMaxLength;
|
||||
end;
|
||||
|
||||
function TCustomComboBox.GetReadOnly: Boolean;
|
||||
begin
|
||||
Result := Style in [csDropDownList, csOwnerDrawFixed, csOwnerDrawVariable];
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
Method: TCustomComboBox.LMChanged
|
||||
Params: msg -
|
||||
|
@ -1699,7 +1699,8 @@ begin
|
||||
ACombo := QComboBox_create(nil);
|
||||
try
|
||||
QWidget_setFont(ACombo, ComboBox.getFont);
|
||||
QComboBox_setEditable(ACombo, not ACustomComboBox.ReadOnly);
|
||||
QComboBox_setEditable(ACombo,
|
||||
not (ACustomComboBox.Style in [csDropDownList,csOwnerDrawFixed,csOwnerDrawVariable]));
|
||||
AText := 'Mtjx';
|
||||
AItems := QStringList_create(@AText);
|
||||
QComboBox_addItems(ACombo, AItems);
|
||||
|
@ -1644,7 +1644,8 @@ begin
|
||||
ACombo := QComboBox_create(nil);
|
||||
try
|
||||
QWidget_setFont(ACombo, ComboBox.getFont);
|
||||
QComboBox_setEditable(ACombo, not ACustomComboBox.ReadOnly);
|
||||
QComboBox_setEditable(ACombo,
|
||||
not (ACustomComboBox.Style in [csDropDownList,csOwnerDrawFixed,csOwnerDrawVariable]));
|
||||
AText := 'Mtjx';
|
||||
AItems := QStringList_create(PWideString(@AText));
|
||||
QComboBox_addItems(ACombo, AItems);
|
||||
|
@ -299,7 +299,6 @@ type
|
||||
function GetAutoComplete: boolean;
|
||||
function GetDroppedDown: Boolean;
|
||||
function GetItemWidth: Integer;
|
||||
function GetReadOnly: Boolean;
|
||||
procedure SetAutoComplete(const AValue: boolean);
|
||||
procedure SetItemWidth(const AValue: Integer);
|
||||
procedure LMDrawListItem(var TheMessage: TLMDrawListItem); message LM_DrawListItem;
|
||||
@ -403,7 +402,6 @@ type
|
||||
property DropDownCount: Integer read FDropDownCount write SetDropDownCount default 8;
|
||||
property Items: TStrings read FItems write SetItems;
|
||||
property ItemIndex: integer read GetItemIndex write SetItemIndex default -1;
|
||||
property ReadOnly: Boolean read GetReadOnly stored False;
|
||||
property SelLength: integer read GetSelLength write SetSelLength;// UTF-8 length
|
||||
property SelStart: integer read GetSelStart write SetSelStart;// UTF-8 position
|
||||
property SelText: String read GetSelText write SetSelText;
|
||||
|
Loading…
Reference in New Issue
Block a user