Solved

Move component

Posted on 2001-08-07
4
212 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

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…
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…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

863 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

23 Experts available now in Live!

Get 1:1 Help Now