Jump to content
Sign in to follow this  
Norm Kirchner

Lv To System Tray

Recommended Posts

I would like to make a peice of code that sends a LV app to the "System Tray".

I have found that the function to call is "Shell_NotifyIcon" in the "Shell32.dll".

It needs 2 inputs of type DWORD and PNOTIFYICONDTA.

The later data type is a complex data type containing many parts. :headbang:

I belive that it will be necessary to make a CIN in which the DLL will be called.

I have the documentation on how to do this.

What I need is to figure out how to manipulate the data into the data types so that I can send it to the DLL.

The MSDN doc on the PNOTIFYICONDATA type is

http://msdn.microsoft.com/library/default....ifyicondata.asp

-Norm

Share this post


Link to post
Share on other sites

I have meant to try to get something done but never got around it. And yes you can't do without DLL or CIN.

Georgo Zou has however in his Toolkit functions to just do that.

Rolf Kalbermatter

Share this post


Link to post
Share on other sites
I have meant to try to get something done but never got around it. And yes you can't do without DLL or CIN.

I did get this to also work with an ActiveX component downloaded from the net. I cannot remember the name of the one I used <chagrin> but a quick google reveraled a fair few and some of them appeared to be free.

Share this post


Link to post
Share on other sites

:lightbulb: George Zou made two years ago some kind of stuff called gtoolbox, with methods to insert to taskbar icons and descriptions. It was controled by some vis.

I probably have it somewhere in my archives.

You could also search this archives:

http://www.mooregoodideas.com/FAVIs/Operating_System.htm

best regards

Mikrobi

Share this post


Link to post
Share on other sites

:lightbulb:

I've found quite simple method:

Download ActiveX ocx file from

http://download.com.com/3001-2401-890762.html

Be sure that you LabVIEW don't work yet.

Next register ActiveX component it in the system:

from windows>Run:

REGSVR32.EXE [your drive letter]:\[OCX_Dir]\STI.ocx

Now run LabVIEW and at Front Panel select

>>Container>>ActiveX Container >> right mouse button and Inser ActiveX Object...

at option Create Control will be active listbox contains 'Validate Servers' >> STI Control

and at diagram you could use Invoke and Property Nodes to set your options based at help file 'sti-help.html' in STI zip.

I hope it would help

best regards

Mikrobi

Share this post


Link to post
Share on other sites

Aah I remember now, STI was the one I got to work under LV too. It worked quite nicely. I would suggest checking out George's tools as well because his stuff is always top shelf.

Share this post


Link to post
Share on other sites

Ditto on checking George's toolkit out. The price is trivial for what you get and George has been pretty responsive when I have asked for help on a couple of examples.

Share this post


Link to post
Share on other sites

Hi

I have to write a program that should be minimized to the system-tray (I have found some OCX-File's - they can display an icon in the tray)

but how can I react to clicks at this clicks?

Is the shell32.dll the only way?

Could somebody give me an simple example? Or a hint to solve this problem.

Thanks a lot...

*sorry my english ist not the best*

Share this post


Link to post
Share on other sites
Hi

I have to write a program that should be minimized to the system-tray (I have found some OCX-File's - they can display an icon in the tray)

but how can I react to clicks at this clicks?

Is the shell32.dll the only way?

Could somebody give me an simple example? Or a hint to solve this problem.

Thanks a lot...

*sorry my english ist not the best*

4056[/snapback]

If you use the OCX component,you can obtain the OCX Click to trigger use the Dynamic event.

Other post,Here~

Hope this helpful..

Share this post


Link to post
Share on other sites
I would like to make a peice of code that sends a LV app to the "System Tray".

I have found that the function to call is "Shell_NotifyIcon" in the "Shell32.dll".

It needs 2 inputs of type DWORD and PNOTIFYICONDTA.

The later data type is a complex data type containing many parts. :headbang:

I belive that it will be necessary to make a CIN in which the DLL will be called.

I have the documentation on how to do this.

What I need is to figure out how to manipulate the data into the data types so that I can send it to the DLL.

The MSDN doc on the PNOTIFYICONDATA type is

http://msdn.microsoft.com/library/default....ifyicondata.asp

-Norm

304[/snapback]

Check out this website:

INVENTEERING - INVtray LabVIEW Toolkit

OpenG_INVtray_Image.gif

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.