Events/Messages of TPanel

Posted on 2004-04-08
Medium Priority
Last Modified: 2010-04-05
I want to perform an action before my panel gets invisible and after it got visible again. Howto? Thank you!
Question by:__alex
  • 2
LVL 27

Expert Comment

ID: 10782167
if it is a subclassed panel,
you could override the show/hide or wndProc-methods

if it is a standard-panel you could hook the wndProc-method

meikl ;-)

Author Comment

ID: 10782211
WM_SHOWWINDOW is fired before my panel is shown. I need it after it is made visible. Is there another message I don't know about?
LVL 12

Accepted Solution

Lee_Nover earned 1000 total points
ID: 10782377
a simple solution would be to post a message when that happens
so you would do smtn like: if AMsg.Msg = WM_SHOWWINDOW then PostMessage(Panel.Handle, WM_USER + 123, 0, 0);
that message will then be received after the panel was shown

Author Comment

ID: 10783277
Awesome, thanks!

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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 the video, one can understand the process of resizing images in single or bulk. Kernel Bulk Image Resizer is an easy to use tool for resizing large number of images. One can add and resize multiple images with this tool in single go. The video sh…
Watch the video to know the simple way to remove or recover or reset lost or forgotten passwords of Outlook PST file. With Kernel Outlook Password Recovery tool such operation is very easy to perform. It is a freeware with limitation to use with 500…

600 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