Solved

Delphi Programming question

Posted on 1997-07-09
2
138 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
Comment Utility
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
Comment Utility
thank you..

your answer was really excelent..

Nils
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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 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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 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