Solved

Events/Messages of TPanel

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
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 Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

920 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

14 Experts available now in Live!

Get 1:1 Help Now