Solved

overlapping timage components in delphi

Posted on 2011-03-06
2
590 Views
Last Modified: 2012-05-11
I have a Delphi application and on a form several timage components each containing a picture.
Says I have Image1, Image2, Image3
How can I programmatically change which image is "above" others at run time ?
What is the property governing that ?
0
Comment
Question by:LeTay
2 Comments
 
LVL 2

Accepted Solution

by:
RezaSadigh earned 500 total points
ID: 35046333
Hi
Use BringToFront method. for example if you want to order Image4, Image2, Image1, Image3 use this code
Image3.BringToFront
image3.refresh
Image1.BringToFront
image1.Refresh
Image2.BringToFront
image2.Refresh
Image4.BringToFront
Image4.Refresh
Application.ProcessMessages
0
 
LVL 37

Expert Comment

by:Geert Gruwez
ID: 35046473
The bring to front is ok,
but you need only call update of the container

Image3.BringToFront
Image1.BringToFront
Image2.BringToFront
Image4.BringToFront

PanelX.Update;

individually redrawing each image will be slower than only redrawing at the end
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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

939 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

10 Experts available now in Live!

Get 1:1 Help Now