Solved

Controls on grid

Posted on 1999-01-06
1
211 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

691 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