Solved

Events/Messages of TPanel

Posted on 2004-04-08
4
174 Views
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!
0
Comment
Question by:__alex
  • 2
4 Comments
 
LVL 27

Expert Comment

by:kretzschmar
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 ;-)
0
 
LVL 2

Author Comment

by:__alex
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?
0
 
LVL 12

Accepted Solution

by:
Lee_Nover earned 250 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
0
 
LVL 2

Author Comment

by:__alex
ID: 10783277
Awesome, thanks!
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 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

21 Experts available now in Live!

Get 1:1 Help Now