Solved

Move component

Posted on 2001-08-07
4
217 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
[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
  • 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
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…

690 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