Image Run-Time Shortcut Menu

OK, more on the non-standard behavior of Image Controls (in LV 2009 SP1 at least)...
Having had to deal with the fact that one cannot detect a user right click in an Image Control, I figured that maybe I could at least build my own shortcut menu (the one that pops up when you right-click on an object). Not such luck without loosing some functionalities.
If you do so, you loose most items that are available by default at runtime (these are called the application items for any other controls):
- Palette
- Save Image...
- Clear ROI
- Zoom to Fit
I could rebuild all these functionalities in my custom menu, but:
1) why should I have to do that?
2) why do the items above not appear when one opens the default run-time shortcut menu? They do appear at run-time!
3) why do ALL other shortcut menu items available at edit time (some of which could be handy at run-time) not appear when one opens the default run-time shortcut menu?
4) At run-time, none of the menu items listed above are returned in the event structure when polling the Shortcut Menu Selection events (either App or User). Why????
Thanks for reading.

VTHokie wrote:
Hi Xavier,
You can keep an eye out for CAR numbers in the known issues lists as they are published with software patches and releases, but especially in the bug fixes lists to see if a specific CAR has been remedied in that release.
- Greg J
Greg, neither of those lists contain references to issues within Vision Development Module... 
If you are looking for a similar style list for Vision, the only location these are currently published is in the release notes for each release, such as here:
http://ftp.ni.com/support/softlib/vision/Vision%20Development%20Module/2010/readme.html
Also, I found reference to a VDM-specific known issues list here:
http://zone.ni.com/devzone/cda/tut/p/id/11942
Eric

Similar Messages

  • Copy picture of graph to clipboard through run-time shortcut menu

    Hi,
    I have following problem. I would like to copy picture of graph to clipboard through graph “run-time shortcut menu”. It’s easy when I want copy exactly what I see. There is an Item Tag: APP_SC_COPY_DATA. That works nice. Try an example1.vi. (Run then right click on the graph...)
    But problem is when I want to change the graph appearance before copying (only change the colour of the graph to be more printer-friendly). I have created a subVi with copy of the graph with changed colour. But how to simulate for the graph inside the subVi same runtime shortcut event? How to call APP_SC_COPY_DATA of subVi graph from outside Vi?
    I hope I’ve explain it clear.
    If you have better method for clipboard copying tell me.
    ThanksMessage Edited by jochynator on 08-03-2006 11:48 AM
    jochynator
    LV 8.0.1, WinXP Pro
    Attachments:
    examples.zip ‏37 KB

    You should use GetImage Not ExportImage.
    I modified you VI.
    George Zou
    http://gtoolbox.yeah.net
    George Zou
    http://webspace.webring.com/people/og/gtoolbox
    Attachments:
    export.vi ‏14 KB

  • Is it possible to preserve dynamic run-time shortcut menu updates for a control?

    Hello all,
    I have a question about getting control run-time shortcut menus to persist after adding new items.  I am hopeful that I'm simply missing something simple here.
    Known Information
    I understand the use of the "Shortcut Menu Activation?" event (for the control of interest) which provides the relevant control's menu reference for use with the menu VIs.  No problems there.
    Problem
    I start with a control which has an .rtm file assigned as its run-time shortcut menu.  
    I then generate new items dynamically using the event/menu mechanism noted above.  
    The problem is that there doesn't seem to be a way to *preserve* those newly added items (ie. I have to re-create the new items everytime the menu is *activated*).
    What I observe is that, unless I add all the items every time the right-click event occurs (in the "Shortcut Menu Activation?" event case), it defaults back to the original .rtm menu state.
    Question
    Does anyone know how to either:
    get dynamically added menu items to "stick"
    perhaps dynamically create (new) and load an .rtm for a *control*
    Thanks in advance for any thoughts.  I'm working in LabVIEW 8.6 for this particular project.
    VM

    Looking at the second post link, it seems like you are trying to populate 10,000+ shortcut items on the Shortcut Menu for the control. I'm guessing these are tiered, since I don't think all of them would fit on the screen. If they are tiered, have you tried populating only the top level short cuts, and then populating more as the user navigates down the tree?
    - Regards,
    Beutlich

  • How to call "Edit VISA resource" window from run-time shortcut menu

    Hope somebody is able to help me
    When editing my application I have "Edit VISA resource" menu item.
     You can see it on the first picture
    But when I turm on run-time shortcut menu and run the application I\d like to get same menu item directing me to VISA resource settings window.
    Is it possible or not?
    How can I call different MAX components programmatically? I can invoke MAX with ActiveX, but I can not find how can I invoke exactly "Edit VISA resource" window...
    Thanks to anybody for any help!
    Attachments:
    edit visa resource.png ‏63 KB
    no edit visa resource.png ‏60 KB

    comper wrote:
    Hope somebody is able to help me
    When editing my application I have "Edit VISA resource" menu item.
     You can see it on the first picture
    But when I turm on run-time shortcut menu and run the application I\d like to get same menu item directing me to VISA resource settings window.
    Is it possible or not?
    How can I call different MAX components programmatically? I can invoke MAX with ActiveX, but I can not find how can I invoke exactly "Edit VISA resource" window...
    Thanks to anybody for any help!
    Not sure it is a good idea to be editing VISA resources while the VI is running.  I'm not even sure it's "legal" which might explain why it isn't there.  If all you want to to is be able to change which equipment to talk to, maybe it's best to just to have a VISA resource control and have the user select from there, or maybe a ring control with pre-defined VISA resources.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • LabVIEW 8.6 Tree Control Run-time Shortcut Menu in Executable

    Has anybody else noticed that the options Open/Close All Items have disappeared from the shortcut runtime menu of a tree control when the application is built? I recently upgraded from 8.5 and those two options have disappeared from all of the tree controls in my application.  I tried customizing the menu and adding the options to the menu.  Now they appear but on some controls they are disabled and on the others where they don't appear disabled, they simply don't work. Everything works great in the development environment.
    I built an executable of one of the LabVIEW tree control examples and the same thing happens. Is this a bug that has already been reported somewhere?
    Thanks,
    Erin
    Attachments:
    TestTree.zip ‏79 KB

    Dear Erin,
    I have been able to reproduce the issues you are reporting. I have opened a Corrective Action Request so our R&D Engineers can fix this issue in future versions of LabView. Thank you very much for your feedback. It will be of great help to enhance National Instruments products.
    Greetings,
    David
    National Instruments
    Message Edited by Support on 01-29-2009 11:54 AM

  • Check marks or dynamic items for run-time shortcut menus

    Labview version: 8.0
    I'd like to create a run-time shortcut menu for my Xcontrol, that would
    allow user to toggle between two states of the control. Is it possible
    to either
    1) dynamically apply check marks to run-time shortcut menus or
    2) dynamically modify the run-time shortcut menu content
    Tomi
    Tomi Maila

    Hi Tomi,
    Great question.  Yes, you can do what you want with run-time shortcut menus in LabVIEW 8.0.  If you want to dynamically modify the menu content, you have to do it in the "Shortcut Menu Activation?" event in the facade VI of the XControl.  In the event data for this event is a parameter called "MenuRef" which works with the same menu primitives that have been around since LabVIEW 5 for editing the menu bar at run-time. 
    With these primitives, you can add/delete/modify menu items to the shortcut menu.  The items that are already in the MenuRef when this event case executes are always the ones that are statically defined, either by LabVIEW or by customizing them.  You do not have control over the state of the items that LabVIEW adds, but you can remove them and add ones with the same text (just with a different tag).  In your case, you would probably want to use the Insert Menu Item primitive to add an item such as "Toggle State".  Give it a tag such as "USER_TOGGLE_STATE".  Then you'll want to use the Set Menu Item Info primitive to set the checkmark for that item based on the state of the XControl.
    Then, you'll need to add an event case for the "Shortcut Menu Selection (User)" event so you can handle the item being selected.  Wire the Item Tag parameter from the event data to a case structure and add a case to look for "USER_TOGGLE_STATE".  And in that case, toggle the state of your XControl.  That's all you need to do!
    The Dual Mode Thermomter shipping example in <LabVIEW 8.0>\examples\general\xcontrols\Dual Mode Thermometer\Simple Dual Mode Thermometer XControl.lvproj is a simple example of how you can modify the menu and respond to the items selected.  It's a little different than what you want to do, but it might help you to look at it.
    Good luck!  Let me know if you have questions.
    Robbie

  • Run-Time Shortcut Menus

    Hi,
         How can i create Run Time Shortcut menu
    with tick mark?. like here i am attached the file.
    Thanks in
    Advance.
    Sivaraj M S
    Sivaraj M.S
    CLD
    Attachments:
    bb7a9f541545.gif ‏11 KB

    Hi Siva,
    are you talking about the checkmark?
    Read the help for "Set Menu Item Info" function and you will notice the "checked" input
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Application's run-time shortcut menus don't work on local drive.

    The run-time menus in my application don't work, unless I run the application from the location where it is built.  This project has an application build specification, and an installer build specification.  The installer specification, copies the app to the local drive.  But the run-time shortcut menus do not work when the app runs.  Nothing happens when I right click on the control.  However if I run the same app from the network drive, where the application build spec builds it, it runs fine.  When I have the application build spec build the app directly to the local drive, it works fine.  The exe, ini and aliase files are identical.  Why does this app run differently depending on which drive it's on?  How can I fix it so the run-time shortcut menus work on the target machine?  Any ideas?

    Hello, I believe that when you create a custom run-time menu it gets saved to a file.  My guess is that you are not including this file as part of the build specification for the application.  The file likely exists in the build directory but does not on the target directory which is why it no longer works.  If that does not fix the problem, let me know and I will see if I can figure something else out.
    Regards,
    Burt S

  • How to disable the run-time popup menu in the sequence display on TestStand Operator Interface, that allow the use to skip the test?

    How to disable the run-time popup menu in the sequence display on TestStand Operator Interface, that allow the use to skip the test?

    Hello,
                  Regarding the skip/force pass/force fail options, when I set the ControlExecFlow to True in Teststand 3.1 and 3.5, in the Sequence Editor the menu options for skip/force pass/force fail are not active for Technician but, when I launch the Operator Interface logged with Technician the options are active. The problem is that if the technician sets one step to one of these options, and change the user to Operator, the test step remains skip/force pass.
                  Is there any possibility without modifying the Operator Interface (at programming level), to reload default values of the steps when changing the user to Operator?
    Thank you,
    Best regards,
    paio

  • Question about Run-Time Shortcut Menus example

    I am looking at the Run-Time Shortcut Menus.vi that ships with LabVIEW2011. There is an event case "Test List":Mouse Down that does nothing but generate a Val(Sgnl) event for the "Test List" control if the right mouse button was pressed. There is no value change event for that control.
    Is there an obscure reason to do that? One thing I have learned about many of the examples is not to strictly use them as examples.
    =====================
    LabVIEW 2012
    Solved!
    Go to Solution.

    Nevermind - I found the obscure reason. Even though there is not a value change event, generating the value change event is required to change the value on right-click.
    At least NI could have documented this in the example
    =====================
    LabVIEW 2012

  • Any way to link a controls' custom shortcut menu to a new .rtm file?

    My project programmatically generates controls from a template. The template has a custom shortcut menu that is saved in the project directory, and the generated controls all work fine with this. However, now I need to be able to export the project to other directories/machines, and so now the generated controls can no longer 'find' the .rtm shortcut file, despite it being in the same folder as the control. This means if I want to be able to use the menu I have to open every generated control (which there can be hundreds of) and right-click -> advanced -> run-time shortcut menu -> and then reopen the file. 
    Is there any way to programmatically link a controls' shortcut menu to a new .rtm file, or is there any way to set a controls' custom shortcut file as a relative path instead of an absolute one?
    Cheers

    Many people can solve their problems with the 20 page limit using custom components. You should check out this thread
    http://forums.adobe.com/message/2500263#2500263
    It is possible to use the onClick -> go to State and set states on a custom component or any of its subcomponents.
    Catalyst does not currently support linking to a local files.
    -Bear

  • Why the 3D graph control shortcut menu is disabled?And how to set 3D graph to default view when running?

    1).Controls have shortcut  menu,but the 3d graph's shortcut menu cannt be able. why? how to make it able?
    2).3D graph can be rotated free by dragging, and when it is not running,right click ,select default view, the graph go back to initial view. But when the VI run, the shortmenu is disabled, how to make it to defaul tview. the property node and method seem have none about default view

    The 3D Graph control is actually an ActiveX control (in Windows), so it's not a "standard" LabVIEW control with the "standard" run-time popup menu. Consequently, to access most of the properties and actions you actually have to use the Property Node and Invoke Node functions in the Application Control palette:
    Message Edited by smercurio_fc on 05-30-2008 09:55 AM
    Attachments:
    Example_VI_BD6.png ‏1 KB

  • Only first plot of waveform chart has run-time menu

    Hello again all you helpful forum-goers!
    My multi-plot waveform chart is working decently well, but now for some reason only the first plot in the plot legend displays a run-time customization menu when I click on it while the VI is running (allowing me to select the plot color, etc.).  All the other plots do nothing when I click on them.  I do not have any mouse-down events or filter events of any kind in my VI.  I programmatically set the number of plots and the size of the plot legend, along with each plot's name, y index, and color.  Any ideas as to what might be going on?
    Thanks a bunch as always!
    -Joe
    Solved!
    Go to Solution.

    Okay, hopefully this will help get some more thoughts / answers flowing.  I've copied my strip chart from my actual VI into a test VI, and it still exhibits the problem.  On the other hand, I have created a new strip chart from scratch, and it works fine.  I have attached both VIs here for you to see.  My guess is that some property of the first chart is set incorrectly or something, but I cannot figure out which one (and there are so many!).
    Any assistance you can give would be appreciated. The challenge is to get the chart in the first VI working (plots other than the first responding to a mouse click to change their color or other attributes), via changing some attribute of the chart (and being able to tell me which one you changed!).
    Thank you again for anyone who can look into this.
    -Joe
    Attachments:
    Test StripChart color selection not working.vi ‏17 KB
    Test StripChart color selection working.vi ‏12 KB

  • How can I use undo and redo with run time menu?

    Hi..I try to built my own menu for graphic programming. How can I use undo and redo in labview with run time menu?

    filozof-
    During runtime, by default, LabVIEW has undo/redo data changes under the edit menu. This will undo/redo changes made to controls during runtime. If you want a more extensive undo/redo (custom for your application), you are going to have to do quite a few things
    1) Create a custom runtime menu (Edit>>RunTime Menu) and place your own undo/redo controls on it
    2) Keep an action history in your program
    3) Catch the Shortcut menu event for your custom undo/redo controls
    4) Reverse the last action in your histroy when you catch the event
    This method would allow you undo entire operations (like resize, move, or whatever kind of functionality you are building into your application) unstead of just undoing data changes.
    Xaq

  • Custom Run Time Menu (.rtm) for a tree control doesn't appear in LV executable

    Hello,
    I am using a custom run time menu (.rtm) for a tree control in LV.  When I right click on the control the run time menu appears in the LV development environment.  However the run-time menu does not appear when run the executable installed by the installer I created.  I tried including the .rtm file with the installer, but it did not fix the problem.
    Please let me know if any ideas.
    Thanks,
    Russell

    This is a known issue and has been reported to our R&D engineers for further investigation (CAR# 3T2E57V2). The workaround is to embed the run-time menu in the control instead of the separate .rtm file. To do this, make a minor change in the shortcut menu (for instance, add a dummy item then delete it), so that the shortcut menu editor will ask you to save the new menu. When it prompts you, choose to save it with the control instead of to file.

Maybe you are looking for

  • Label bounds bigger than they really are

    I have a question regarding the calculation of the bounds of labels and how they are used to take up space in a parent. In my example, i have an application where the top element is a border pane. In the left part of the borderpane i have a VBox with

  • Cant hear on first call but works on second call!

    My wife and I both got Xperia Z1's at the start of November.  Recently my wife has been having a problem with her phone. Nearly every time she calls me I cant hear her but she can hear me. If she hangs up and phones me back it works fine! Anyone got

  • Files not saving in CS2

    Hey, everyone I just started working with InCopy a little while ago, so I hope there isn't some dreadfully easy solution to this problem that I'm just too obtuse to notice, but here it goes. I've just started a job where I'm editing InCopy files, but

  • Configure MQ Connection using SSL

    Hi, I wonder if its possible to tell the "foreign" JMS MQ client to use a specific private key/certificate when communicating with its MQ Server which requires a SSL connection. I have setup the parameters for the MQ part so far and if run in an exam

  • Error startup dcmctl - ADMN-100999

    Hello Guys, Before this it works fine. After i change the ip address of the server it give me this error when i try to startup ADMN-100999 See base exception for details. Base Exception: java.lang.NullPointerException:null See base exception for deta