Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Delphi Programming question

Posted on 1997-07-09
2
Medium Priority
?
151 Views
Last Modified: 2010-04-06
Hi!

I've derived a component from aa tpaintbox which draws a shadow under each of it's childs... It runs well, but I would like to repaint some parts of the shadows when one child-windows changes it's position, size or dissapeares at all.

How can I get a notification when a child-window changes it's bounds?

It's not possible to use the methods provided by the child-windows. I need them for other purposes. I read the windows api, but didn't find a message which does what I want.

any ideas?

  nils pipenbrinck

Thank you.
0
Comment
Question by:nils pipenbrinck
2 Comments
 
LVL 1

Accepted Solution

by:
ygolan earned 0 total points
ID: 1338502
Nils,

To get a notification when a child is destroyed, override the Notification method of your paint control - it will be called wheneven a component is added/removed from the form.

To detect when a child is resized, you need to subclass its window, and capture the WM_WINPOSCHANGED message. Email me if you need source code which will help you to perform the subclassing at ygolan@hyperact.com.

0
 
LVL 4

Author Comment

by:nils pipenbrinck
ID: 1338503
thank you..

your answer was really excelent..

Nils
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

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…
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 shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Integration Management Part 2
Suggested Courses
Course of the Month20 days, 19 hours left to enroll

810 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