Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
treenode font style
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
OnKeyUp error sound
by
Thaddy
[
Today
at 12:58:44 pm]
Type checking of units of...
by
circular
[
Today
at 12:51:57 pm]
is there an internet conn...
by
Thaddy
[
Today
at 12:50:29 pm]
"TestAll" project issues
by
JuhaManninen
[
Today
at 12:46:01 pm]
[Solved] Initialization s...
by
petevick
[
Today
at 12:20:48 pm]
VST summation time bugs
by
dseligo
[
Today
at 12:11:02 pm]
tvPlanit - how to presele...
by
wp
[
Today
at 11:54:40 am]
more UTF8 confusing
by
JuhaManninen
[
Today
at 11:28:56 am]
ScroogeXHTML 8.3 - RTF to...
by
mjustin
[
Today
at 11:09:13 am]
DatePointHintTool - inval...
by
Nicole
[
Today
at 11:08:53 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: treenode font style (Read 226 times)
fcu
Jr. Member
Posts: 80
treenode font style
«
on:
November 22, 2022, 04:16:32 pm »
Hi
how can i change a treenode font style , make it bold for example
like in the picture
Logged
jamie
Hero Member
Posts: 5069
Re: treenode font style
«
Reply #1 on:
November 23, 2022, 12:11:23 am »
Code: Pascal
[Select]
[+]
[-]
procedure
TForm1
.
TreeView1CustomDrawItem
(
Sender
:
TCustomTreeView
;
Node
:
TTreeNode
;
State
:
TCustomDrawState
;
var
DefaultDraw
:
Boolean
)
;
begin
With
TTreeView
(
Sender
)
do
Begin
If
Node
.
Parent
=
Nil
Then
Begin
font
.
color
:
=
clBlack
;
end
else
Font
.
Color
:
=
clgray
;
end
;
end
;
Set the NoThemeDraw to off in the Options of the Treeview.
Logged
The only true wisdom is knowing you know nothing
fcu
Jr. Member
Posts: 80
Re: treenode font style
«
Reply #2 on:
November 23, 2022, 07:12:12 am »
thanks jamie
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
LCL
»
treenode font style
TinyPortal
© 2005-2018