Solved

Delphi Programming question

Posted on 1997-07-09
2
145 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
[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 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

717 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