Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-01

Purpose of TShellTreeView.ShowRoot

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Sven Barth

Hello together!

I'm currently testing around on the TShell* controls and came to the ShowRoot property now.

1. Why is this property duplicated in Options as well?
2. What's the purpose of this property? I personally thought that it would allow me to show/hide the root node (e.g. on Linux "/" by default or the root set in the "Root" property), but changing it to "false" just hides all extend signs in the tree (and thus the subdirectories can no longer be extended).

Regards,
Sven

Reply by email

Felipe Monteiro de Carvalho
to Sven Barth
Sven Barth wrote 9 lines
I'm currently testing around on the TShell* controls and came to the ShowRoot property now. 1. Why is this property duplicated in Options as well? 2. What's the purpose of this property? I personally thought that it would allow me to show/hide the root node (e.g. on Linux "/" by default or the root set in the "Root" property), but changing it to "false" just hides all extend signs in the tree (and thus the subdirectories can no longer be extended).

I don't know, but both Options and ShowRoot are implemented by TCustomTreeView, not in the shell controls.

Delphi docs for reference:

http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/ComCtrls_TCustomTreeView_ShowRoot.html

http://lazarus-ccr.sourceforge.net/docs/lcl/comctrls/tcustomtreeview.options.html

Options doesn't seam to exist in Delphi. Probably someone added this option because he didn't know that the ShowRoot property existed.

Felipe Monteiro de Carvalho

Reply by email

Sven Barth
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 23 lines
On Sun, Jan 16, 2011 at 3:50 PM, Sven Barth wrote: > I'm currently testing around on the TShell* controls and came to the > ShowRoot property now. > > 1. Why is this property duplicated in Options as well? > 2. What's the purpose of this property? I personally thought that it would > allow me to show/hide the root node (e.g. on Linux "/" by default or the > root set in the "Root" property), but changing it to "false" just hides all > extend signs in the tree (and thus the subdirectories can no longer be > extended). I don't know, but both Options and ShowRoot are implemented by TCustomTreeView, not in the shell controls. Delphi docs for reference: http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/ComCtrls_TCustomTreeView_ShowRoot.html http://lazarus-ccr.sourceforge.net/docs/lcl/comctrls/tcustomtreeview.options.html Options doesn't seam to exist in Delphi. Probably someone added this option because he didn't know that the ShowRoot property existed.

Thanks for the answer.

What an unintuitive property...

Regards,
Sven

Reply by email