Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi TVirtualStringTree mit Checkboxen (https://www.delphipraxis.net/103393-tvirtualstringtree-mit-checkboxen.html)

Trille 15. Nov 2007 08:44


TVirtualStringTree mit Checkboxen
 
Ich habe einen TVirtualStringTree, bei dem ich vor jedem Knoten eine Checkbox anzeigen lassen möchte.

Bisher mache ich folgendes:

Delphi-Quellcode:
node := tree.AddChild(nil);
node.CheckType := ctCheckBox;
Dennoch werden mir keine Checkboxen angezeigt. Woran kann das liegen?

Hawkeye219 15. Nov 2007 09:09

Re: TVirtualStringTree mit Checkboxen
 
Hallo Trille,

hast du das Flag toCheckSupport in TVirtualStringTree.TreeOptions.MiscOptions gesetzt?

Gruß Hawkeye

generic 15. Nov 2007 11:54

Re: TVirtualStringTree mit Checkboxen
 
die knoten direkt manipulieren geht zwar,
aber du solltest besser

Delphi-Quellcode:
vst.CheckType
und
Delphi-Quellcode:
vst.CheckState
verwenden. so kann der vst auch ggf. ereignisse auslösen.

Trille 15. Nov 2007 14:06

Re: TVirtualStringTree mit Checkboxen
 
Zitat:

Zitat von Hawkeye219
Hallo Trille,

hast du das Flag toCheckSupport in TVirtualStringTree.TreeOptions.MiscOptions gesetzt?

Gruß Hawkeye

Genau da war das Problem, danke!


Alle Zeitangaben in WEZ +1. Es ist jetzt 20:26 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz