LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to create a context menu, which is launched by right mouse button click event?

The question is following: when you are pushing right button in the window of a working vi you see the build-in context menu of labview. Is it possible to customize it, or create the new one?

www.xinstruments.com - Custom Software for Industrial Automation

www.hdrconverter.com - Picture processing made easy

0 Kudos
Message 1 of 15
(3,541 Views)
There's no nuilt-in LabVIEW function or tool to do it, but Dave Ritter published an artical in the LabVIEW Technical Resource last year that described how to do this. It uses the Event Structure so you need to have at least LabVIEW 6.1.

You can read a bit of the artical here. There's also a link on the bottom of the page where you can purchase that issue to get the entire artical and sample code.

Ed


Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 2 of 15
(3,539 Views)
Hi,

Here's an LLB from NI that I've modified to do what I wanted a few months ago. I use it when I need right-click context menus. Don't try to make too big context menus because they are not easy-to-make by this mean.
I suggest you make a subvi that creates the handle and the choices (that's what I usually do). See example VI in the LLB

Sorry, but comments are in French in this LLB. Version is LV7.0 and OK with WinXP...

Hope this helps !
Julien
0 Kudos
Message 3 of 15
(3,539 Views)
Thank u very much Julien. The toolkit u've sent is really good.

Alexander

www.xinstruments.com - Custom Software for Industrial Automation

www.hdrconverter.com - Picture processing made easy

0 Kudos
Message 4 of 15
(3,539 Views)
Hi,

Here is another one in English. The creation of large menus might be easier.

Regards,

Wiebe.

"alexander khodarev" wrote in message
news:506500000005000000BFB00100-1079395200000@exchange.ni.com...
> Thank u very much Julien. The toolkit u've sent is really good.
>
> Alexander




[Attachment Menu 042004.zip, see below]
0 Kudos
Message 5 of 15
(3,539 Views)
Hi Wiebe,

Thank you very much for your comment *****.
Your llb is far easier to use than the one I've posted.

Do you also have easy-to-use LLBs for ToolBars and StatusBar as well ? The one I use for ToolBars takes definitely too much time (ActiveX)...

Well done anyway for your LLB !!
Julien
0 Kudos
Message 6 of 15
(3,539 Views)
Julien,

Thanks for the credit..

I did Toolbars (Coolbars actually) but I also used AX. The code I've made
didn't have nice llb's, just some messy experimental code.

Regards,

Wiebe.


"jumarion" wrote in message
news:5065000000050000000AB30100-1079395200000@exchange.ni.com...
> Hi Wiebe,
>
> Thank you very much for your comment *****.
> Your llb is far easier to use than the one I've posted.
>
> Do you also have easy-to-use LLBs for ToolBars and StatusBar as well ?
> The one I use for ToolBars takes definitely too much time (ActiveX)...
>
> Well done anyway for your LLB !!
> Julien
0 Kudos
Message 7 of 15
(3,539 Views)
Hey Guys,
I was searching for customised "Right Click Menu" and
I found useful information from the discussion. so i thought i would contribute something for people who would have similar searches like me.

Context Menu LLB was indeed very useful. i added some code to it which explains a simple way to create SUBMENUS. the program is straight forward so havent put many Comments. the program is in labview7.0 works fine with Win XP. it can be used with Context Menu LLB from Julien.
thanks
madhan
0 Kudos
Message 8 of 15
(3,539 Views)
Hi,

For those of you who don't use M$, I also have a *platform independant
context menu toolkit* (yes, also with submenus). It's not exactly the same
(look and feel) but it's very similar to the M$ menus.

It will be on our website soon (get it from my mail adress), but I could
mail it if someone is very eager (remove capitals from mail adres).

Regards,

Wiebe.


"alexander khodarev" wrote in message
news:50650000000800000084E80000-1079395200000@exchange.ni.com...
> The question is following: when you are pushing right button in the
> window of a working vi you see the build-in context menu of labview.
> Is it possible to customize it, or create the new one?
0 Kudos
Message 9 of 15
(3,539 Views)
Hi wiebe,
it would be great if u could send it to me !
madhan@student.ece.utk.edu
thanks in advance
madhan
Note : - sorry could not guess either ur website or eamil address
0 Kudos
Message 10 of 15
(3,539 Views)