?
Solved

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

Posted on 2007-04-11
3
Medium Priority
?
2,180 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
[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
  • 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 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month13 days, 23 hours left to enroll

800 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