Solved

Delphi Programming question

Posted on 1997-07-09
2
143 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

738 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