Click to See Complete Forum and Search --> : Systray Icon Help


Ryanitus
June 22nd, 2001, 10:17 PM
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

cksiow
June 22nd, 2001, 10:54 PM
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

John G Duffy
June 23rd, 2001, 09:44 AM
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