Solved

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

Posted on 2007-04-11
3
2,138 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 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

696 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