TrayIcon Event Order Bug |
Post Reply |
Author | |
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
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. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |