Solved

Move component

Posted on 2001-08-07
4
214 Views
Last Modified: 2010-04-06
I update the left value of another component, when the left value of my groupbox component is changed.
If I move the groupbox component around in the delphi IDE, the left value change fine. But the left value of the other component isn't changed.

If I then focus the left property in the object inspector and hits enter, the left value of the second component is updated.
Is there a way to update the second components value on the fly ? or is this just the way delphi works
0
Comment
Question by:sorentop
  • 2
  • 2
4 Comments
 
LVL 4

Expert Comment

by:fva
ID: 6359551
Why don't you make all other components children of your groupbox? That way Windows will take care of moving (but I admit, the "Left" property of all children will be relative to the parent).

F.
0
 

Author Comment

by:sorentop
ID: 6359570
they must be located outside the box
0
 
LVL 4

Accepted Solution

by:
fva earned 100 total points
ID: 6359634
The suggestion you got from geobul in http://www.experts-exchange.com/jsp/qShow.jsp?qid=20164439 is not entirely reliable since the Left property is used in VCL at a lower level than your new-defined SetLeft (which does not fall propely over a virtual method but is merely a replacement from that point on to other derivates).

Check my last post on http://www.experts-exchange.com/jsp/qShow.jsp?ta=delphi&qid=20164523 for some other suggestion.

F.


0
 

Author Comment

by:sorentop
ID: 6359911
Overriding SetBounds works fine
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
delphi parse string to params 3 151
Dev express lookupcombo 3 44
Slow Restore if incremental backups using RDiff.exe 4 39
Microsoft Access 97 and Delphi XE2 9 71
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…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

685 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