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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what kind of component are these?

Status
Not open for further replies.

CADTenchy

Technical User
Dec 12, 2007
237
GB
Hi,

I'm trying to do an app with a component like this:


I want to be able to drag the column headers to resize the columns (just like in Excel).
I also want to detect a double click anywhere in any line and execute an action on that particular line.
The lines will be populated from both a set of edit boxes and reading in from a file.
I want to easily save the contents of this control to a file.
I want to be able to change the backgorund colour of lines as required. (All independantly)

Is there a standard component I can use for this, or one I can get and install?

Also, is there a component that pops a panel in and out like this:




Steve (Delphi 2007 & XP)
 
OK, I think I answered my first question, looks like a stringgrid. I was fooled by the default stringgrid having a fixed column, and the default state of the columns being non dragable, but google and festra.com came to the rescue.

I may still need help on the actions I want to perform on the StringGrid, but I'll research some more.

Also could still use advice on the panel thing.
Cheers


Steve (Delphi 2007 & XP)
 
I've looked at the jedi project before.
The thing that put me off is that I know there will be 100's of components I will never use, and I like to keep installs to a minimum where possible.

Is it possible to just get selected ones?
I couldn't see a way.

Failing that are there any sites that show the jedi set installed, with screen grabs etc, so I could see what it all looks like?

Steve (Delphi 2007 & XP)
 
True - there are a ton but you can always customize your component pallet to remove the ones that you don't want to see. Using the DelphiSpeedUp add-on will mean that the extra components won't slow down your IDE from loading.
 
All that the 2nd example looks like to me is a panel with two nested panels on it. Clicking the button toggles panel3.visible to true or false and changes the button image. I don't see why you'd need additional components to do that. Need help with the code, just post it.

Roo
Delphi Rules!
 
Is there a problem with the Jedi VCL page at the moment?
I can't get any response.

Also, is there a help guide anywhere which tells me exactly what I need to download and install, in what sequence etc?
I assume the Jedi code library would be a valuable part too?


Steve (Delphi 2007 & XP)
 
It appears that any non on Codegear's page is not happy at the moment.

Yes - the installers are well documented and work very well - even when you have multiple versions of Delphi installed.

IIRC the JCL libarary is required so you may as well download that while you wait for the Codegear site to come back up.
 
interestingly, the JVCL megademo uses the exact same panel control to pop the left panel in/out as I was looking for.

Does the megademo show all of the controls that are available in JVL 3.33?

Steve (Delphi 2007 & XP)
 
That's the intention of the megademo but when I last ran it there were a couple of problems. It didn't stop me from using the JVCL, however.
 
An alternative to a TStringGrid is a TListView, which is capable of meeting all of the above requirements you stated.

Clive
Runner_1Revised.gif

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
Thanks for pointing out a listview can be used too, need to work out which is best...


Steve (Delphi 2007 & XP)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top