tlistview

How to saving a Tlistviews layout in Delphi

How do I save a Tlistviews layout in Delphi 2007? I have been asked to write some code to allow users to re-order columns in a TListview (well all TListviews in our application), I have the code working (by manipulating the columns index and setting width to zero to hide columns not needed) but now I need a way to save the state of the ...

Customizing a TListBox to resemble an Outlook list

Hey all, Please down vote me if this is not appropriate, but I'm desperate to the point of pulling my hair out looking for this link. This is really a last resort. Recently I browsed to a blog (at least I think it was) that had a very detailed description on how to modify a TListBox to have a multi-line look resembling some of the entr...

Get/Set TShellListView Path/Folder as String (Not Using .Root)

I want to set the path for a TShellListView to display a directory of files using Delphi 2007. I can initially use TShellListView.Root to set the root path like this and it shows the directory I want: View := TShellListView.Create(Self); // ... View.Root := 'C:\Windows'; But if the user navigates away from that directory using backsp...

Set TShellListView Persistent Column Widths in Code

Is there any way to persistently set the column widths on a Delphi 2007 TShellListView in vsReport mode using code? The normal ShellListView.Columns[0].Width property only sets the width for the current directory, and that width is reset after every change of the current directory or refresh of the file list (including refreshes and dir...

Cause 'hint' to refire on listview as I move over items

Sure I've seen this done before but off-hand I can't find any examples. I've got a TListView, set in 'report' viewstyle. It has about half a dozen subitems, and one thing we'd like to do is have the 'hint' (tooltip) on the listview dynamically show another field of data. That is, each time you move the mouse over any given row, the 'hin...

Need help in Tlistview delphi

hey all In my tlistview all lines caption and subitem[0] filled with some data , and i want to fill other subitems line by line after all stored in caption and subitem . Example my listview is like this user pass working status valid data1 pass --- --- data2 pass2 ---- ----- - - - I loaded t...

Listing Files On Directory On a TListView

I'm building a program that needs to on Form_Create, populate a TListView called FileList, the directory that I want to populate is where the compiled program is + \Files, as I never used a TListView I want to know how to do this? ...

ProgressBar In tListview subitem Delphi

I've been looking at how to put a ProgressBar in a tListview in delphi, and I've got some code that works... BUT I want to add it to a subitem.. and cannot figure it out... DFM Source Begin object Form1: TForm1 Left = 221 Top = 113 Caption = 'Form1' ClientHeight = 203 ClientWidth = 482 Color = clBtnFace Font.Charset =...

Handling item checked in a TListView descendant.

I have a TListView descendant which introduces additional features like sorting and loading from a dataset. I now wish to modify the class so that whenever an item is checked or unchecked it is added or removed in an internal list of checked items so that an application using an instance of the component can easily read the number and l...

Double right click to Show a PopUpMenu with A TListView !!

Hi, I have a TListView and TPopupMenu, and I want to show a context menu when I right click on a TListItem. I tried the "AutoPopup" by assigning the component, but on a right click the PopupMenu is shown only and the wanted element is not selected. So i tried to use the "OnMouseDown", but we need to click and click again to show the men...

Count the number of items in a TListview Group

When I attempt to count the number of items in a group I get the total number of items in the collection. How do you get the number of items in each group? ...

how to sort in Tlistview based on subitem[x]

hey all how to sort in tlistview with data present in subitem[x] regards ...

how to set background image to TListview in Delphi XE?

Hi, how i can to to set background image to TListview in Delphi XE?? i want to make a application like Windows Explorer. ...