Jump to content

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

Link to comment
  • 3 months later...
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.

Link to comment
  • 1 month later...

: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

Link to comment
  • 7 months later...
  • 1 month later...

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*

Link to comment
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..

Link to comment
  • 5 months later...
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

Link to comment

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.

×
×
  • Create New...

Important Information

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