virtualtreeview

How to drag a file from Virtual TreeView to Windows Explorer

Hi, I have a TVirtualStringTree, each node represents a file, what I want to do is to allow a user drag a node to the Windows Explorer or Outlook and the target gets a real file. It seems that I need to implement the OnGetUserClipboardFormats and RenderOLEData event handler? But I don't know where to start...Would you help me? ...

Delphi, VirtualStringTree - classes (objects) instead of records

I need to use a class instead of record for VirtualStringTree node. Should I declare it standard (but in this case - tricky) way like that: PNode = ^TNode; TNode = record obj: TMyObject; end; //.. var fNd: PNode; begin fNd:= vstTree.getNodeData(vstTree.AddChild(nil)); fNd.obj:= TMyObject.Create; //.. or should I use directly TMyOb...

VirtualTreeview: when to sort children?

Hi all, I depend on VirtualTreeView to display thousands of items which are bound to change occasionally and when this happens the tree is cleaned and populated again. Sorting is done automatically (toAutoSort flag set) but this has an unwanted effect of initializing all the nodes recursively and this is a very expensive operation as yo...

How to use TJvBalloonWindow as the hint window for Virtual treeview?

I have a 'hint window leftovers' problem with Virtual Treeview in an Office add-in, and now I want to customize the hint window to solve the problem. I want to use TJvBallonHint from the JVCL package, which is also used in other parts of my program. I inherited TVirtualStringTree and have overridden the GetHintWindowClass method like t...

Delphi5 Virtual TreeView wanted

Hi Does anyone happen to have a copy of the Virtual TreeView that is Delphi5 compatible? Or does anyone know where it can be downloaded from? Thanks in advance to any responses. ...

(RAD Studio) Virtual TreeView: how to initialize all nodes at once?

Hi, I just discovered this component and started working with it. I understand that the whole concept of it is to initialize nodes on the go as they are needed but I need all of them to initialize instantly. What is the smart way to do it? The only thing I came up with is to use GetLast() after adding nodes. I believe, there is a bett...

Delphi - ListView or similar with owner draw button

How do I do create a listview (or similar) with a button on each line? The button needs to be able to have different text/color on each line as required. I'm sure Virtual Treeview would be perfect for this, but I'm a little lost with it. Thanks -Brad ...

TVirtualStringTree compatibility between Delphi 7 and Delphi 2010 - 'Parameter lists differ'

Hi, I've made a form containing a TVirtualStringTree that works in Delphi 7 and Delphi 2010. I notice that as I move between the two platforms I get the message '...parameter list differ..' on the tree events and that the string type is changing bewteen TWideString (D7) and string (D2010). The only trick I've found to work to suppress th...

Is there any trade-offs by using classes objects instead of records in VirtualStringTree?

Regarding: http://stackoverflow.com/questions/2288461/delphi-virtualstringtree-classes-objects-instead-of-records Does the memory increases or something? PS: I am using Delphi 2007. ...

Auto sizing column in TVirtualStringTree

Climbing the learning mountain of TVirtualTreeView, I'm attempting to create a custom descendant that ensures that, when the control is resized, the width of the last column exactly fills control's width without requiring a horizontal scroll bar. I see a number of items (a method and a number of events) pertaining to "AutoFitColumns", b...

TVirtualStringTree - resetting non-visual nodes and memory consumption

I have an app that loads records from a binary log file and displays them in a virtual TListView. There are potentially millions of records in a file, and the display can be filtered by the user, so I do not load all of the records in memory at one time, and the ListView item indexes are not a 1-to-1 relation with the file record offset...

How to reliably scroll Virtual TreeView to the bottom?

Hi, A TVirtualStringTree object with custom node height, How to reliably scroll Virtual TreeView to the bottom (i.e. the scrollbar gets to the bottom)? I tried calling tree1.FullExpand then tree1.ScrollIntoView.(tree1.GetLast), but it does not work. Thank you in advance. ...

How to use TVirtualStringTree to display multi-line items and "expanded" select item?

I'm looking to create a look similar to the image below (which I know was done using TVirtualStringTree), but I haven't found any example code on how to accomplish this. Anyone knows how I can have multi-line items like on the example below, and "expand" the select item to show more lines? ...

VirtualStringTree hide node(s)

Hi, is that possible to hide specific nodes in VirtualStringTree? I'm implementing "filtering" feature (the VST acts as a list with columns), and I'd like to avoid reloading content each time the filter is changed - instead, much faster would be to tell VST not to render specific items ... any solutions? ...

How to determine if a cell is in the view port of a Virtual treeview?

Hi Folks, How to determine if a cell is in the view port of a Virtual treeview? Thanks. ...

Highlight selection even when tree is not focused

Hi, I use simultaneously several TVirtualStringTree on the same form. If a tree has a selected node, but the focus is currently on another tree, the selection is highlighted with a pale gray color. Is there a simple way to have the selection of an unfocused TVirtualStringTree highlighted with the usual selction color (blue on my compu...

Is it possible to change the color of a row in a virtual string tree?

I want to change the color of text in a specific row of a virtual string tree. is it possible? ...

Delphi - Virtual String Tree Slow GetText Method At Large Amount Of Nodes

I am not yet very experienced with the TVirtualStringTree component, therefore maybe I overlooked something trivial. My app gathers File Information into a record (FileName, Path, Size) and displays the data in a Virtual String Tree. Now when there are lots of Nodes (200K+) I experience a heavy slow down, the whole Tree basically lags....

What are the scrolling limits of a Virtual Tree View?

How can I get the max scroll for the X and Y in virtualstringtree during onchange event? ...

How do you drag and drop a file from Explorer Shell into a VirtualTreeView control in a Delphi application?

There is extensive drag and drop support in VirtualTreeView by Mike Lischke, and I am using TVirtualStringTree, which has some on-drag-and-drop events, but I can not figure out how to get it to accept a shell drag-and-drop of some files from the windows explorer shell, into my application. I want to load the files, when they are dragged...