Class TPGTrayIconMsgWindow (unit PGTray95) |
TComponent
Constructors |
Functions |
Properties |
Events |
Variables |
Constructors |
TPGTrayIconMsgWindow
Functions |
Initialize the timer that is used to determine whether or not } { OnMouseEnter and OnMouseExit mouse events have occurred.
Starts a timer used to "delay" processing click and double click events } { inside the main message loop. This avoids the following OLE Automation } { Instantiation error: Error Code: RPC_E_CANTCALLOUT_ININPUTSYNCCALL - 'An } { outgoing call cannot be made since the application is dispatching an } { input-synchronous call'. More information on this topic can be found at } { the following URL: http://www.microsoft.com/kb/articles/q131/0/56.htm
Timer event that evaluates which mouse event has occurred, a single } { click, or a double click. Once it has been determined, the appropriate } { event is fired.
Fire's the OnMouseEnter event, and starts a timer that is used to } { eventually fire the OnMouseExit event.
Starts a timer used in checking if a double click has occurred.
Fire OnMouseEnter event.
Checks to see if the cursor is still in the bounds of the TrayIcon. If } { it isn't, then the OnMouseExit event is fired. This procedure is the } { OnTimer event for the MouseMoveTimer, and is enabled when the cursor } { enters the bounds of the TrayIcon.
This windows procedure is called by Windows whenever it has a message } { it wants to send to our component. The procedure is coded to } { capture mouse messages, and to interpret from the messages whether or } { not the user clicked, or double clicked the TrayIcon. } { Note: Whenever a mouse down message is received, the component starts a } { timer, and waits (the double click time in Windows) until it can } { determine if a single click or double click has occurred. Once } { it has been figured out, the appropriate event is fired.
Properties |
Events |
Variables |