|
-
June 22nd, 2001, 10:17 PM
#1
Systray Icon Help
I've succesfully been able to create a systray icon for my program but there are a few problems. The ToolTip area is way too long for the Caption I have for it, is there anyway to specify the length of the ToolTip? Also, it takes 2 right-clicks to show the popup menu I have specified. I'm not sure why it's doing that. If anybody has any info, I'd appreciate it. Thanks~
~Ryan
-
June 22nd, 2001, 10:54 PM
#2
Re: Systray Icon Help
as far as I know, the ToolTip area will adjust itself according to the text that you set. Maybe you didn't terminate the string, try terminate it using NULL char, like this
TrayIcon.szTip = TipsMsg & Chr(0) ' where TrayIcon is type NOTIFYICONDATA
second problem, you should response to the message WM_RBUTTONDOWN rather than WM_RBUTTONDBLCLK.
HTH
cksiow
http://vblib.virtualave.net - share our codes
-
June 23rd, 2001, 09:44 AM
#3
Re: Systray Icon Help
Make sure you do not have any leading or trailing blanks. THe double click to cativate is a function of your program. Check it out. Possibly your code in in the Dbl_Click event instead of the _Click event
John G
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|