Solved

Move component

Posted on 2001-08-07
4
211 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
Comment Utility
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
Comment Utility
they must be located outside the box
0
 
LVL 4

Accepted Solution

by:
fva earned 100 total points
Comment Utility
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
Comment Utility
Overriding SetBounds works fine
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

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…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video discusses moving either the default database or any database to a new volume.

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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now