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
error release when memo.s...
by
dseligo
[
Today
at 05:40:29 am]
Is there a function calle...
by
Bogen85
[
Today
at 05:33:40 am]
Controls inside the form ...
by
Ecsa
[
Today
at 04:02:37 am]
Theo's Searchbar plugin f...
by
Curt Carpenter
[
Today
at 03:54:33 am]
Search panel plugin for t...
by
Curt Carpenter
[
Today
at 03:51:49 am]
Question about GTK2 text ...
by
tomitomy
[
Today
at 02:25:17 am]
lazreport load image from...
by
dseligo
[
Today
at 01:41:08 am]
pls advice for good style...
by
dseligo
[
Today
at 01:19:35 am]
Best way to parse file.
by
Kays
[
Today
at 12:56:50 am]
capture apl_exec stdout
by
440bx
[
Today
at 12:28:28 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: treenode font style (Read 221 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: 5045
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