Lazarus

Programming => Packages and Libraries => Topic started by: Borneq on January 03, 2020, 10:27:43 pm

Title: TVirtualStringTree and plus/minus
Post by: Borneq on January 03, 2020, 10:27:43 pm
Howto show plus/minus buttons? I prefer one click in this button to exapnd/collapse than doubleclick on node
Title: Re: TVirtualStringTree and plus/minus
Post by: wp on January 03, 2020, 10:44:17 pm
Are you sure that you did not turn off TreeOptions.PaintOptions.toShowButtons? Note in this context: there are related properties "ButtonStyle" and "ButtonFillMode".
Title: Re: TVirtualStringTree and plus/minus
Post by: Borneq on January 03, 2020, 11:30:08 pm
No pluss/minus but empty space after icon. MAybe I should use VirtualDrawTree insread of VirtualStringTree?
Title: Re: TVirtualStringTree and plus/minus
Post by: wp on January 03, 2020, 11:35:43 pm
What is your OS, Laz/FPC version? Where do you have the VirtualTreeView package from?
Title: Re: TVirtualStringTree and plus/minus
Post by: Borneq on January 04, 2020, 01:56:28 pm
Is ok, if I removed
Code: Pascal  [Select][+][-]
  1. VST.TreeOptions.PaintOptions :=
  2.      VST.TreeOptions.PaintOptions + [toUseExplorerTheme];
I do my code after minimal VST example
Above is not enough.
I do :
- make code after minimal VST example  in my form
- modify to desired
Title: Re: TVirtualStringTree and plus/minus
Post by: coliv_aja on January 20, 2020, 02:48:00 am
VTV5 laz port simply doesn't have the icon in touseexplorertheme. Well the the selection theme also doesn't work. It's very simple to fix if you look at virtualtrees.pas. At least for Windows.
TinyPortal © 2005-2018