Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Events/Messages of TPanel

Posted on 2004-04-08
4
Medium Priority
?
182 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 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
0
 
LVL 2

Author Comment

by:__alex
ID: 10783277
Awesome, thanks!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

782 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