Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
FPC
Lazarus
Lazarus
Commits
7640a869
Commit
7640a869
authored
Apr 09, 2012
by
Juha Manninen
Browse files
LCL: Implement TListItem.EditCaption, issue
#20295
git-svn-id: trunk@36676 -
parent
d9ca0b83
Changes
2
Hide whitespace changes
Inline
Side-by-side
lcl/comctrls.pp
View file @
7640a869
...
...
@@ -945,6 +945,7 @@ type
procedure MakeVisible(PartialOK: Boolean);
function DisplayRect(Code: TDisplayCode): TRect;
function DisplayRectSubItem(subItem: integer;Code: TDisplayCode): TRect;
function EditCaption: Boolean;
property Caption : String read GetCaption write SetCaption;
property Checked : Boolean read GetChecked write SetChecked;
...
...
lcl/include/listitem.inc
View file @
7640a869
...
...
@@ -373,6 +373,17 @@ begin
LV
,
GetIndex
,
subItem
,
code
);
end
;
function
TListItem
.
EditCaption
:
Boolean
;
var
LV
:
TCustomListView
;
begin
LV
:=
FOwner
.
FOwner
;
LV
.
Selected
:=
Nil
;
// First clear all selections,
LV
.
Selected
:=
Self
;
// then set this item as the only selected.
if
not
LV
.
ReadOnly
and
Assigned
(
LV
.
FEditor
)
then
LV
.
ShowEditor
;
end
;
{
------------------------------------------------------------------------------
}
{
TListItem
IntfUpdateText
}
{
------------------------------------------------------------------------------
}
...
...
FPC Admin account
@fpc_admin
mentioned in issue
#20295 (closed)
·
Jul 28, 2021
mentioned in issue
#20295 (closed)
mentioned in issue #20295
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment