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
How to determine the unkn...
by
Hartmut
[
Today
at 01:04:47 pm]
Strange Error in My Code ...
by
TYDQ
[
Today
at 01:03:58 pm]
; after then
by
Martin_fr
[
Today
at 12:59:18 pm]
Status of FPC 3.4.0 or FP...
by
robert rozee
[
Today
at 12:50:54 pm]
Lazarus recompiles some o...
by
Martin_fr
[
Today
at 12:44:41 pm]
Rolling releases Lazarus[...
by
Bi0T1N
[
Today
at 12:33:55 pm]
[SOLVED] TaChart on MAC: ...
by
Martin_fr
[
Today
at 12:25:45 pm]
[ANN] fpGUI Toolkit v2.0....
by
Seenkao
[
Today
at 12:13:47 pm]
Fpcupdeluxe
by
tk
[
Today
at 12:08:34 pm]
ThorVG - test (lightweigh...
by
Boleeman
[
Today
at 11:28:52 am]
External SIGSEV (Database...
by
Zvoni
[
Today
at 08:26:34 am]
Debian removes FPC/Lazaru...
by
dbannon
[
Today
at 01:08:23 am]
Fast Canvas Library V1.05...
by
backprop
[February 10, 2026, 11:38:53 pm]
fpGUI vs MSEide + MSEgui?
by
Graeme
[February 10, 2026, 10:23:25 pm]
Is FPGUI still active?
by
Graeme
[February 10, 2026, 10:20:16 pm]
TRichMemo EM_FORMATRANGE ...
by
rvk
[February 10, 2026, 09:31:40 pm]
TLazSerial : serial port ...
by
CM630
[February 10, 2026, 09:14:56 pm]
it2play - IT/S3M module r...
by
Lulu
[February 10, 2026, 09:11:05 pm]
The Future of FPC
by
Ten_Mile_Hike
[February 10, 2026, 07:38:23 pm]
Fixing Lazarus 4.4 IDE la...
by
Curt Carpenter
[February 10, 2026, 06:47:29 pm]
Z80 ZX Spectrum and Syste...
by
Cascade
[February 10, 2026, 03:30:13 pm]
Where is Lazarus config
by
Martin_fr
[February 10, 2026, 12:10:36 pm]
Anchordocking - window pr...
by
Zvoni
[February 10, 2026, 10:41:04 am]
Anchordocking - Window T...
by
janhsh
[February 10, 2026, 09:33:09 am]
Free Pascal for a small e...
by
dbannon
[February 10, 2026, 09:20:55 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Missing information related to an old release notes (Read 647 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