Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Would like to paint TGauge in TListView 1

Status
Not open for further replies.

MagicFrisbee

Programmer
Feb 22, 2006
74
US
Hello, Delphi experts! I am working on an app where I display financial categories, how much money was in to start, how much is left, and what percentage is gone. I plan to do this with a TListView in vsReport style. It would be cool if I could replace the column of percentages with a horizontal TGauge instead (found in the Samples category of the IDE component palette). Each "instance" of the TGauge would show the corresponding percentage of money left. It wouldn't have to be interactive, just for show. The TGauge would make the UI look cooler and give the user more of a graphical sense of how much money is left in each category without having to pour over numbers. Any suggestions?

GIS Programmer
City of Orem, UT
 
You need to write a component.


I would start something like this: inherit from TListView (or one of it's ancestors), use custom TListViewItems which each include a gauge (you will need to instantiate and position them etc. using code).

Depending on how advanced you are it may be easier to get someone else to make this component for you or try and find something off the shelf which will do this (DevExpress would be a good place to start).

Paul Rigby
VBA, C#, Delphi
 
DevExpress is an awesome site! And they have gauges in list views already. I have contacted their sales people to ask them how to run an unbound version of their mixed tree/list views and so forth.

GIS Programmer
City of Orem, UT
 
I can surely recommend devexpress components, I use them in my latest projects and I'm very satisfied... .

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top