Solved

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

Posted on 2007-04-11
3
2,066 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 AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

778 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