?
Solved

Move component

Posted on 2001-08-07
4
Medium Priority
?
218 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 400 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
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 video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month10 days, 4 hours left to enroll

762 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