Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
show checkbox in virtualstringtree
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
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
Directx9 with pascal-sour...
by
d2010
[
Today
at 07:58:05 pm]
Azure sql database will n...
by
wpflum
[
Today
at 07:56:41 pm]
Doomed name
by
Martin_fr
[
Today
at 07:48:23 pm]
Linux Workspaces -- StayO...
by
QEnnay
[
Today
at 06:48:51 pm]
Slow copying of small str...
by
Thaddy
[
Today
at 06:37:29 pm]
Lazarus editor feature re...
by
440bx
[
Today
at 06:14:23 pm]
lazarus-project_3.2.0-0_a...
by
midigark
[
Today
at 06:09:40 pm]
Text orientation in TMemo...
by
wp
[
Today
at 05:51:25 pm]
TBGRABitmap.TextSize retu...
by
circular
[
Today
at 05:24:04 pm]
BUG REPORT: Unable to gen...
by
gasensor
[
Today
at 05:10:20 pm]
[solved]FP IDE(FP.exe) fa...
by
gasensor
[
Today
at 04:45:40 pm]
Lazarus for Windows on aa...
by
msintle
[
Today
at 04:12:52 pm]
InstallAware Using Lazaru...
by
msintle
[
Today
at 04:09:20 pm]
Inherits forms and releas...
by
ASerge
[
Today
at 03:37:45 pm]
For-in loop over constant...
by
VisualLab
[
Today
at 01:49:14 pm]
The weird Rewrite bug
by
Kays
[
Today
at 01:23:40 pm]
FpDebug unexpected Assemb...
by
440bx
[
Today
at 12:54:43 pm]
Arabic text, problem on L...
by
Zaher
[
Today
at 12:34:05 pm]
RayLib 5.0
by
Guva
[
Today
at 11:25:40 am]
CocoaInt.CocoaIconUse no ...
by
MISV
[
Today
at 09:20:40 am]
Does anyone know why this...
by
TYDQ
[
Today
at 06:39:17 am]
AI, NLP and CAI: Text Gen...
by
schuler
[
Today
at 04:26:36 am]
Demoscene Square dot flag...
by
KodeZwerg
[
Today
at 03:47:30 am]
How does Castle Game Eng...
by
michalis
[
Today
at 02:51:40 am]
Have anyone develop UEFI ...
by
440bx
[April 16, 2024, 09:39:52 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: show checkbox in virtualstringtree (Read 4753 times)
majid.ebru
Hero Member
Posts: 502
show checkbox in virtualstringtree
«
on:
August 20, 2018, 02:37:33 pm »
Hi
how can i show checkbox in virtualstringtree?
i read
this example
but my app crashed?
i changed some properties of VST.
can anybody help me?
Logged
balazsszekely
Guest
Re: show checkbox in virtualstringtree
«
Reply #1 on:
August 20, 2018, 02:39:54 pm »
Set the CheckType property of each node to ctTriStateCheckBox.
Logged
majid.ebru
Hero Member
Posts: 502
Re: show checkbox in virtualstringtree
«
Reply #2 on:
August 20, 2018, 02:52:37 pm »
how can i do that?
i use this code :
Code: Pascal
[Select]
[+]
[-]
.
.
.
ParentNode
:
=
VST
.
GetFirstChild
(
nil
)
;
T_Node
:
=
VST
.
AddChild
(
ParentNode
)
;
VST
.
Expanded
[
ParentNode
]
:
=
True
;
LMyNode
:
=
VST
.
GetNodeData
(
T_Node
)
;
LMyNode
^
.
Col1
:
=
FieldS
[
15
]
.
Text
;
LMyNode
^
.
Col2
:
=
FieldS
[
14
]
.
Text
;
.
.
.
if possible ,i want show checkbox only for level 3
«
Last Edit: August 20, 2018, 02:58:35 pm by majid.ebru
»
Logged
balazsszekely
Guest
Re: show checkbox in virtualstringtree
«
Reply #3 on:
August 20, 2018, 02:57:42 pm »
@majid.ebru
Quote
how can i do that?
When you init the nodes. For example:
Code: Pascal
[Select]
[+]
[-]
var
Node
:
PVirtualNode
begin
Node
:
=
VST
.
AddChild
(
nil
)
;
//add a root node to tree
Node
^
.
CheckType
:
=
ctTriStateCheckBox
;
end
;
If you wish to find the checkstate of a node:
Code: Pascal
[Select]
[+]
[-]
if
(
VST
.
CheckState
[
Node
]
=
csCheckedNormal
)
then
begin
end
;
Logged
majid.ebru
Hero Member
Posts: 502
Re: show checkbox in virtualstringtree
«
Reply #4 on:
August 21, 2018, 07:49:36 am »
when i use your code
i have error access denied
Logged
balazsszekely
Guest
Re: show checkbox in virtualstringtree
«
Reply #5 on:
August 21, 2018, 09:23:59 am »
Quote
when i use your code
i have error access denied
Please attach a small demo project where the tree is already populated. Also specify the nodes where you wish to have checkbox support(node level or some other criteria).
Logged
majid.ebru
Hero Member
Posts: 502
Re: show checkbox in virtualstringtree
«
Reply #6 on:
August 21, 2018, 04:22:43 pm »
hi
i clear many of Function and Procedure!?!?
i add child to tree in unit_DM_Element line 4132
i compress project to 3 part
thank you
«
Last Edit: August 21, 2018, 05:06:26 pm by majid.ebru
»
Logged
balazsszekely
Guest
Re: show checkbox in virtualstringtree
«
Reply #7 on:
August 21, 2018, 04:48:02 pm »
You're application is not working(sigsegv) and I don't have time to debug it. Please add a simple demo(no dependencies, no sql, etc...) otherwise I cannot help you.
Logged
majid.ebru
Hero Member
Posts: 502
Re: show checkbox in virtualstringtree
«
Reply #8 on:
August 21, 2018, 04:51:56 pm »
thank you
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
show checkbox in virtualstringtree
TinyPortal
© 2005-2018