Recent

Author Topic: ShellTreeView path  (Read 9068 times)

B_TpaHce

  • Newbie
  • Posts: 3
ShellTreeView path
« on: January 12, 2013, 10:29:34 pm »
Hello
How change ShellTreeView path?
I not found this property in Lazarus 0.9

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: ShellTreeView path
« Reply #1 on: January 12, 2013, 10:37:12 pm »
Welcome to our forum  :)

There is property Root.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

B_TpaHce

  • Newbie
  • Posts: 3
Re: ShellTreeView path
« Reply #2 on: January 14, 2013, 11:42:55 am »
Thanks for reply!
Now, i need Refresh or Update my ShellTreeView after creating folder.
I write this property so:
  ShellTreeView1.Refresh;
  ShellTreeView1.Update;
but ShellTreeView1 not updated.
May be for this function need other property?

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1932
Re: ShellTreeView path
« Reply #3 on: January 14, 2013, 12:21:44 pm »
I think there is no property for this atm. You could change TShellTreeView or use a hack like this:

Code: [Select]
  ShellTreeView1.BeginUpdate;
  ShellTreeView1.Root:='';
  ShellTreeView1.Root:='/home/theo/Dokumente/';
  ShellTreeView1.EndUpdate; 

B_TpaHce

  • Newbie
  • Posts: 3
Re: ShellTreeView path
« Reply #4 on: January 14, 2013, 04:51:00 pm »
Thanks for reply!
This hack don't work how i need.
I found other hack for refresh ShellTreeView:
   self.ShellTreeView1.Selected.Expanded:=false;
   self.ShellTreeView1.Selected.SelectedIndex:=self.ShellTreeView1.Selected.SelectedIndex;
   self.ShellTreeView1.Selected.Expanded:=true;
« Last Edit: January 14, 2013, 05:01:55 pm by B_TpaHce »

 

TinyPortal © 2005-2018