Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - TrayIcon Event Order Bug
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

TrayIcon Event Order Bug

 Post Reply Post Reply
Author
Message
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Topic: TrayIcon Event Order Bug
    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.

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.