Solved

How does TGridPanel add the Row property to all its child controls?

Posted on 2007-04-11
3
2,045 Views
Last Modified: 2013-11-23
Hi all,

Delphi 2006 introduced a TGridPanel, which aligns child controls in a grid.
When you place a (e.g.) TEdit in a TGridPanel, it gains some extra properties, like
        property Row: Integer;
which is the Row that the TEdit will be placed in inside the TGridPanel.

How is that possible? Is it even possible in pure Delphi code, or does it need built-in compiler support? For example, Is it possible to implement TGridPanel on Delphi 7?

My purpose it to make something like TGridPanel or TFlowPanel, but which will align the child controls according to other properties (not row/column) which I will add to every TControl descendant inside the panel.
0
Comment
Question by:alkisg
  • 2
3 Comments
 
LVL 28

Expert Comment

by:TName
Comment Utility

Hi, just in case you haven't seen them yet, here are some links I find very interesting
(the first link is important, the other documents are linked from it anyway...):
Haven't read the articles thoroughly yet, but I will.


http://hallvards.blogspot.com/2007/03/review-delphi-2007-for-win32-beta-part_11.html

http://blogs.codegear.com/abauer/archive/2007/02/24/32322.aspx

http://dn.codegear.com/article/33421   (or  http://dn.codegear.com/article/33421 )
0
 
LVL 28

Accepted Solution

by:
TName earned 500 total points
Comment Utility
And this:
"Adding a 'fake' property to a component"
http://bdn1.borland.com/article/0,1410,33448,00.html
0
 
LVL 9

Author Comment

by:alkisg
Comment Utility
Starting from your first link, I ended up on your last link (without actually seeing your last post),
http://bdn1.borland.com/article/0,1410,33448,00.html
which is just what I needed.

Unfortunately, D2006 is required to implement this, but I think the result will be worth it.

Thanks!
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now