Solved

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

Posted on 2007-04-11
3
2,053 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
ID: 18888975

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
ID: 18889102
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
ID: 18891457
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
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…
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.
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

914 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

17 Experts available now in Live!

Get 1:1 Help Now