Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Graphics
(Moderator:
Ask
) »
Missing information related to an old release notes
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Single and Double, Conver...
by
jamie
[
Today
at 09:44:48 pm]
Lazarus Bugfix Release 4....
by
backprop
[
Today
at 09:37:57 pm]
Which Control should I us...
by
wp
[
Today
at 09:36:00 pm]
[New Component] ExtTabCtr...
by
d7_2_laz
[
Today
at 09:32:53 pm]
Lazarus 4.8 on Sourceforg...
by
Enos68
[
Today
at 08:00:47 pm]
Can /my/ AI help me with ...
by
microxa
[
Today
at 06:49:37 pm]
Conscious Artificial Inte...
by
Dzandaa
[
Today
at 05:59:22 pm]
If FileExists(
by
Bart
[
Today
at 05:57:26 pm]
SynEdit theme
by
Martin_fr
[
Today
at 05:17:43 pm]
docked IDE and form capti...
by
Paolo
[
Today
at 02:53:50 pm]
New version of LazMapView...
by
wp
[
Today
at 12:09:27 pm]
Very rough version of a s...
by
Hansvb
[
Today
at 11:48:04 am]
PadXml 1.1.0 – Portable A...
by
AlexanderT
[
Today
at 10:38:42 am]
Arkanoid
by
Tomi
[
Today
at 09:46:46 am]
Interesting video
by
Joanna
[
Today
at 06:24:53 am]
IndySecOpenSSL is now ava...
by
TheMouseAUS
[
Today
at 03:49:17 am]
Message CM_ShowingChanged...
by
LeP
[
Today
at 02:13:51 am]
Fast Canvas Library V1.05...
by
Gigatron
[
Today
at 01:48:44 am]
[SOLVED]Program experienc...
by
Cainnech
[
Today
at 12:19:17 am]
TATTabs - how to stop a 3...
by
bobonwhidbey
[
Today
at 12:03:15 am]
If you are looking for Wi...
by
avra
[June 12, 2026, 07:37:10 pm]
Testing with 3.2.4 prepar...
by
Martin_fr
[June 12, 2026, 03:50:17 pm]
TDWEdit
by
Ed78z
[June 12, 2026, 10:20:58 am]
Strange Behaviour at Runt...
by
andrew Bubble
[June 12, 2026, 09:54:40 am]
FPC Debug mode releases [...
by
Martin_fr
[June 12, 2026, 09:22:25 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Missing information related to an old release notes (Read 683 times)
jipété
Full Member
Posts: 194
Missing information related to an old release notes
«
on:
May 17, 2025, 06:26:22 pm »
Hello,
Reading these lines (
https://wiki.freepascal.org/Lazarus_1.2.0_release_notes#LCL_TTreeView_with_Images_no_longer_indents_nodes_without_image
), I don't know what to do with the PaintImages parameter found in the last line.
I don't know where it comes from, I don't know how to use it, configure it.
Best regards and thanks for your help.
Logged
TRon
Hero Member
Posts: 4377
Re: Missing information related to an old release notes
«
Reply #1 on:
May 17, 2025, 07:15:10 pm »
I believe the note is referring to method customdrawitem, see
here
.
Each individual node in the tree can have a (valid) image index when the images are set and the event linked in the docs is afaik used to indicate that the image should be drawn (or not).
Check the individual customdraw events in order to see which ones make actual use of the paintimages boolean. As an example,
OnAdvancedcustomdraw
event makes use of it.
«
Last Edit: May 17, 2025, 07:18:25 pm by TRon
»
Logged
Today is tomorrow's yesterday.
jipété
Full Member
Posts: 194
Re: Missing information related to an old release notes
«
Reply #2 on:
May 17, 2025, 07:38:53 pm »
Thank you for your quick response.
Give me a few days to look into this.
Best Regards,
Logged
jipété
Full Member
Posts: 194
Re: Missing information related to an old release notes
«
Reply #3 on:
May 20, 2025, 03:19:16 pm »
Hello,
I found another solution, simpler in my opinion:
Code: Pascal
[Select]
[+]
[-]
procedure
TForm1
.
tv1MouseDown
(
Sender
:
TObject
;
Button
:
TMouseButton
;
Shift
:
TShiftState
;
X
,
Y
:
Integer
)
;
var
tn
,
WorkNode
,
tmpNode
:
TTreeNode
;
s
,
root
,
target
:
string
;
sl
:
TStringList
;
begin
.....
root
:
=
WorkNode
.
Text
+
'/'
+
tn
.
Text
;
// tn is the selected treenode
tv1
.
BeginUpdate
;
for
i
:
=
0
to
sl
.
Count
-
1
do
begin
s
:
=
CleanFolderName
(
sl
[
i
]
)
;
// custom proc for cleaning filelistbox folders (will remove [ & ])
tmpNode
:
=
tv1
.
Items
.
AddChild
(
tv1
.
Selected
,
s
)
;
target
:
=
root
+
'/'
+
tmpNode
.
Text
;
if
IsDirectory
(
target
)
then
with
tmpNode
do
begin
HasChildren
:
=
True
;
StateIndex
:
=
ImgIndexUncheck
;
ImageIndex
:
=
4
;
SelectedIndex
:
=
4
;
end
;
else
if
(
LowerCase
(
ExtractFileExt
(
s
)
)
=
'.ttf'
)
or
(
LowerCase
(
ExtractFileExt
(
s
)
)
=
'.ttc'
)
or
(
LowerCase
(
ExtractFileExt
(
s
)
)
=
'.otf'
)
then
begin
tmpNode
.
ImageIndex
:
=
2
;
tmpNode
.
SelectedIndex
:
=
2
;
end
else
begin
tmpNode
.
ImageIndex
:
=
3
;
tmpNode
.
SelectedIndex
:
=
3
;
end
;
end
;
// for i
tv1
.
EndUpdate
;
.....
end
;
But I can't figure out how to not open the items' label editor : see attached
editing_open.png
Any idea welcome.
«
Last Edit: May 20, 2025, 03:21:32 pm by jipété
»
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Graphics
(Moderator:
Ask
) »
Missing information related to an old release notes
TinyPortal
© 2005-2018