Print Page | Close Window

TrayIcon Event Order Bug

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=9358
Printed Date: 16 May 2024 at 8:43pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: TrayIcon Event Order Bug
Posted By: jpbro
Subject: TrayIcon Event Order Bug
Date Posted: 19 January 2008 at 6:27pm
Compared to standard VB controls, the MouseDown, MouseUp and Click events of the TrayIcon are incorrect.

For Example, a Label control:

Private Sub lblDate_Click()
    Debug.Print "Click"
End Sub

Private Sub lblDate_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Debug.Print "Down"
End Sub

Private Sub lblDate_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Debug.Print "Up"
End Sub

Will produce the following in the Debug window:

Down
Up
Click

The TrayIcon produces the following:

Click
Down
Up

This makes it impossible to perform a check during the MouseDown event before performing an action such as MinimizeToTray in the click event.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net