Solved

Controls on grid

Posted on 1999-01-06
1
208 Views
Last Modified: 2012-05-04
hi
how can i make/find grid that his cells are controls that i choose/build ?
for example if i make some new control (from Tcontrol class) and i want them to be shown on in the Grid cells ...
10x
asi
0
Comment
Question by:asi
1 Comment
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 20 total points
ID: 1354815
There are some very good stringgrid controls like advgrid.zip on the DSP (http://sunsite.icm.edu.pl/delphi). Take a look at them and see if they do what you want to do .

If not you need to get your hands dirty and add the necesary properties to manage the new component as a property of the string grid and to tell the string grid which cells will display this control. Then when the user starts editing a cell with this control in it you will need to show the control in the correct position and allow the user to do their editing in that. SImilarly you will need to control the drawing so that the new control appears in the right way in the grid.

THere are a whole load of stringgrid controls with free source on the DSP as well (just search for 'grid' :-) These will also give you some good pointers.

Cheers,

Raymond.

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Print Graphic and Text to Epson TM-T88v 12 371
Run video youtube webbrowse 10 65
control image tags in a string ? 12 141
Delphi: making a BW image transparent 10 57
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question