Solved

Events/Messages of TPanel

Posted on 2004-04-08
4
176 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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

770 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