Recent

Author Topic: TVirtualStringTree and plus/minus  (Read 1909 times)

Borneq

  • Full Member
  • ***
  • Posts: 248
TVirtualStringTree and plus/minus
« 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

wp

  • Hero Member
  • *****
  • Posts: 11855
Re: TVirtualStringTree and plus/minus
« Reply #1 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".

Borneq

  • Full Member
  • ***
  • Posts: 248
Re: TVirtualStringTree and plus/minus
« Reply #2 on: January 03, 2020, 11:30:08 pm »
No pluss/minus but empty space after icon. MAybe I should use VirtualDrawTree insread of VirtualStringTree?

wp

  • Hero Member
  • *****
  • Posts: 11855
Re: TVirtualStringTree and plus/minus
« Reply #3 on: January 03, 2020, 11:35:43 pm »
What is your OS, Laz/FPC version? Where do you have the VirtualTreeView package from?

Borneq

  • Full Member
  • ***
  • Posts: 248
Re: TVirtualStringTree and plus/minus
« Reply #4 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
« Last Edit: January 04, 2020, 02:10:27 pm by Borneq »

coliv_aja

  • New Member
  • *
  • Posts: 38
Re: TVirtualStringTree and plus/minus
« Reply #5 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