How to handle shortcut key options in LabVIEW

Hi,
I want to handle the ctrl+c option for a string control in labview. I just want to prevent the user from pressing the ctrl+c button for copying. is it possible to handle that inEvent Structure?
Thanks
Alagar

Ben,
removing the entry Copy from the context menu is not sufficient. In order to disable the control to copy the current active selection, you have to disable <ctrl + c> as shortcut for copying data in the complete LabVIEW environment. You have to open the Tools >> Options, switch to Menu Shortcuts and browse to Edit >> Copy. Switch the shortcut to something else than <ctrl + c>. This will disable the copy function for the shortcut <ctrl + c> (it will occur with the new shortcut of course!)
Drawback:
a) You remove the ability to use <ctrl + c> from the whole LabVIEW environment. So also in edit mode of VIs.... 
b) When making a selection and then pressing <ctrl + c>, it will replace the selection with a simple 'c'. Most often, this is not intended.
So all in all, i would definetly NOT recommend anyone to alter the shortcuts for common functions defined by the OS (<ctrl + c> for Copy, <ctrl + n> for New Document, .... )
hope this helps,
Norbert 
Message Edited by Norbert B on 12-01-2008 08:41 AM
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.

Similar Messages

  • How to forbid shortcut key operation

    Hi all.
    I use LabVIEW 2011 and build exe application.
    I want to forbid user to use shortcut key at exe application.
    I know we can change key configuration at labview, but I could not forbid at exe application.
    Does anyone know how to forbid shortcut key operation at exe application ???

    What kind of shortcut keys are you trying to forbid?  And why?

  • How to set Shortcut keys for button in Apex

    Hi
    Could anyone help me on how to set shortcut keys for buttons in Apex.
    I need to use say ALT + S to submit the page.
    The following thread pertaining to HTML DB refered to use ACCESS key. but that couldnt work in my case.
    Re: operation of the app. with the keyboard
    Any pointers on achieving this would be helpful.
    Thanks
    Vijay

    Hi Vijay,
    I’m afraid you must do it using javascript key listener. You can’t use action() on template based buttons because they are actually not HTML buttons but images with hyperlink.
    Key listener checks which key has been pressed down and invoke some JS function. For example, write this code in page header:
    <script>
    document.onkeydown=keyCheck;
    function keyCheck(e){
         var KeyId = (window.event) ? event.keyCode : e.keyCode;
         switch(KeyId){         
              case 113:
                   doSubmit('SAVE');
                   break;                    
              case 118:
                   alert('Hello');
                   break;
    </script>
    This script will submit page with request 'SAVE' if you press F2 or will show alert message if you press F7. Modify it to your issue.
    Regards,
    Przemek

  • How can configure shortcuts key like in CFstudio 5

    how can configure shortcuts key for CF tags (e.g. alt + o for
    cfoutput) like in CFstudio 5? With DW 8 it seems not possible
    unless you write a snippet of the cf tag which is time consuming.
    There must be a smarter way. Any feedbacks? Thanks

    Don't have DW8 in front of me (am at work, still using
    MX2004), but look in the edit menu for Keyboard shortcuts. It will
    open up a dialog box where you can re-assign
    M

  • How to handle the cancel option of the showInputDialog

    Hi guys,
    I wonder how to handle the cancel option of the showInputDialog. Let is say i am getting a n input from the user and instead of entering any data he cancels the opterations ..
    how to cope with it?
    abdul

    Test for null!
    Example:
    String name = JOptionPane.showInputDialog(parent, "Type your name", "Name Dialog", JOptionPane.INFORMATION_MESSAGE);
    if(name != null) {
    //if the user clicked ok, write action code here...
    } else {
    // the user click cancel, do what you need here...
    Hope this helps!

  • How to Add shortCut  key to  button or form In SAP BusinessOne

    Hi
    How to assign short Cut  key to  button or form ,in SAP BusinessOne using  VB.net.
    Thanks,
    Y.
    Edited by: Yughandar on Mar 10, 2011 9:32 PM

    Hi
    To set shortcut key for button , try this
    in your srf change the button caption like this
    caption="&amp;Del line"
    this will set shortcut key (Alt+d) for the button
    Regards
    Arun

  • How to create shortcut keys

    I am creating a webbased application. It is having a help page.
    What i want to do is the help page should pop up when i press the F1 button.
    Can anyone give me the code to assign the shortcut key f1 for the help page,
    Thanks in advance

    good trick ...
    <HTML>
    <HEAD>
    <TITLE> New Document </TITLE>
    <META NAME="Generator" CONTENT="EditPlus">
    <META NAME="Author" CONTENT="">
    <META NAME="Keywords" CONTENT="">
    <META NAME="Description" CONTENT="">
    </HEAD>
    <script language="JavaScript">
    function handleHotKeys() {
    if (event.keyCode==49){
    window.open("test.htm");
    </script>
    </head>
    <BODY BGCOLOR="#FFFFFF" onkeydown="handleHotKeys();">
    Press 1 to open Help File
    </BODY>
    </HTML>

  • How to change shortcut keys

    Is there a way to change the firefox shortcut keys?

    You can't change them. Some stuff is simply hard-wired.
    Mylenium

  • How to use shortcut keys on wireless keyboard with ipad

    i just purchased an ipad 4 with a wireless keyboard and do not know how to use the function keys on the wireless keyboard to access the homescreen, scroll up and down, etc.  please help with anything i need to turn on/off or download . thanks

    If you have more than one keyboard active, you may be using a different one than you want.  Use the "globe" key to make sure your virtual keyboard is set to Japanese Romaji or Japanese Kana.  Which one do you use?
    On the hardware keyboard, use apple/command plus space to switch between different keyboard layouts which may be active.

  • How to get NI veristand option in LabVIEW tools menu

    HI All
    I have developed a code in LabVIEW for which I want to develop Veristand model.
    but for creating the model , the procedure which i followed on this forum is from LabVIEW tools go to NI Veristand and then create the model.
    BUt in my LV2013 and 2012 also , I am not getting NI veristand option in tools.
    I have NI veristand 2011. Do i need to select any option while installation?
    I have selected LV model support also while installing.
    Please help.

    You need LabVIEW 2011 to build lvmodels for VeriStand 2011. This goes for all LabVIEW plugins.
    After you install LV 2011, you can re-run the veristand 2011 installer and select the model support option I believe I get the menu item you need.
    Jarrod S.
    National Instruments

  • How to handle 'ENTER' Key on ALV Editable Grid on sub screen (Tabstrips)

    Hello Experts ,
    I have 2 questions with ALV Editable grid;
    please help me if you have answers.
    I created ALV grid on one of sub screens on a Tab Strip,
    As soon as user types one of the columns of the ALV grid and press u2018ENTERu2019 key, it has to return corresponding details for that line.
    I tried to implement this logic in ALV grid event u2018handle_data_changedu2019, but ALV internal table is not getting populated with new entry entered in the grid. but u2018double_clicku2019 event working my purpose, but user might need enter key.
    and I thought I would do implement that logic in PAI event of the sub screen, u2018ENTERu2019 key not getting trigger on PAI event of the screen until cursor is on grid.
    Another question 2:  How do I control and not to be deleted a line on the grid (based on validation), where do I validate and by pass the delete function for a particular line, or suggest me to gray out only one line on the grid .
    I would like to have delete function to work as it is ,except for some validations..
    Can I implement using PAI event of the sub screen or any by ALV event.
    Please suggest me..
    Edited by: Ravindranath Arusam on May 13, 2010 2:42 PM

    In DATA_CHANGED event, you will get the modified row into the attribute MP_MOD_ROWS of the impoerting object ER_DATA_CHANGED. Since this MP_MOD_ROWS is the Object reference to Data, you need to have the field symbol to get the value.
      FIELD-SYMBOLS:  <lft_mod_output>  TYPE t_t_output.
      ASSIGN  er_data_changed->mp_mod_rows->* TO <lft_mod_output>.
    You can get the Value of the Cell by using the method GET_CELL_VALUE of the same ER_DATA_CHANGED object and use the method MODIFY_CELL To update the value back to ALV.
    To Restrict the row deletion:
    When the row is deleted it is being added to Attribute mt_deleted_rows of the object ER_DATA_CHANGED. You can put the data back to the table in the DATA_CHANGE_FINISHED event. Visit this post http://help-abap.blogspot.com/2008/10/alv-disable-delete-key-on-keyboard-in.html for more information.
    Regards,
    Naimesh Patel

  • How to disable shortcut keys not listed in the keyboard shortcuts system

    Hi all
    As a Graphic Designer I find the shortcut Shift+F12 amazingly irritating when using QuarkXpress, as this is the key command for editing the colours list. For those of you who don't know this shortcut works exactly the same as F12 (Hide/Show dashboard but in slow motion.
    You may be supprised that I find this of somewhat limited usefulness.
    Can anybody help?
    Ta

    Hi supertottenham
    The Shift key is slo-mo for several functions so I doubt if it can be disabled.
    However if Dashboard is not one of your priorities there is an app called TinkerTool which enables alterations to several of the built in apps including Dashboard which it stops appearing completely including Shift+F12
    It is a freeware download from http://www.bresink.de/
    Hope this is of some use
    Chris

  • How to handle same key record in multiple datapockets

    Hi,
    I have a small issue in terms of cleaning up the data while loading into BI..
    Based on some specific fields I am sorting and  deleting adjacent duplicates from source_package using start routine  then its working fine for most of the cases but not working for some records
    when I observed that It was due to the reason that those records fall into different data pockets so start routine is not able to identify the duplicates.....how can we handle this ..
    Any idea Pls???
    Thanks & Regards,
    BRK

    BRK,
    Try to do same thing at source side(R/3) via user exit. It works better..
    Srini

  • How to handle radio /checkbox options

    If you have a report like so
    select HTMLDB_ITEM.RADIOGROUP(1,accid,'keep') "Accept",HTMLDB_ITEM.RADIOGROUP(1,accid,'delete') "Delete" ,accid,userid,username,authfails,clientid,tncdate,docsource,lastlogin,usertype,dateadded,recert from GFMIS.AUTOBAHNDIRECTACCOUNTS where recert = '0'
    Which would diplay two radio buttons one with keep and one with delete. When run run this through a process like
    FOR i in 1..HTMLDB_APPLICATION.G_F01.COUNT LOOP
    UPDATE GFMIS.AUTOBAHNDIRECTACCOUNTS SET recert = '1', RECERTBY = :APP_USER, RECERT_DATE = SYSDATE, RECERT_ACTION = 'radiobutton' WHERE ACCID = HTMLDB_APPLICATION.G_F01(i);
    END LOOP;
    How do i say if radiobutton = 'keep then RECERT_ACTION = 'what ever radio button was selected'

    Hi Kiranmai,
    You can capture the event of the radio button in the following way in oninputprocessing.
    DATA: event             TYPE REF TO if_htmlb_data,
                   radioButton_event TYPE REF TO CL_HTMLB_EVENT_RADIOBUTTON.
             event = cl_htmlb_manager=>get_event( request ).
             IF event IS NOT INITIAL AND event->event_name = htmlb_events=>radiobutton.
               radioButton_event ?= event.
               ENDIF.
    you can get the attributes of clicked radio button in
    event->event_class
    event->event_id.
    event->event_name
    event->event_type
    event->event_server_name
    In layout define the radio button as
    <htmlb:radioButtonGroup   id          = "test_id">
            <htmlb:radioButton      id          = "id_red"   text = "Red"               onClick="myClick" />
            <htmlb:radioButton      id          = "id_blue"  text = "Blue"          onClientClick="alert('blue clicked')"/>
            <htmlb:radioButton      id          = "id_green" text = "Green"      onClick="myClick" onClientClick="alert('green clicked')"/>
          </htmlb:radioButtonGroup>
    Hope this will solve your problem.
    Donot forget to assign points for helpful answers.
    Regards
    Aashish Garg

  • How to handle multiple key press in numeric keys

    I have used the code from eta . Code is somethg like tis
    lastKeyPress = System.currentTimeMillis();
    protected void keyPressed(int keyCode){
              boolean keyRepeated = false;
              if(System.currentTimeMillis() - lastKeyPress < 1000 &&
         lastKey == keyCode) {
              keyRepeated = true;
              lastKey = keyCode;
         lastKeyPress = System.currentTimeMillis();
    switch(keyCode) {
              case KEY_NUM0 :
              case KEY_NUM1 :
              case KEY_NUM2 :
              case KEY_NUM3 :
              case KEY_NUM4 :
              case KEY_NUM5 :
              case KEY_NUM6 :
              case KEY_NUM7 :
              case KEY_NUM8 :
              case KEY_NUM9 :
              case KEY_POUND :
                                  System.out.println(keyCode);
                                  System.out.println(keyRepeated + "     Repeat");
    But the 'keyRepeated ' always returning false. It doesnt satisfies the 'if' condition. So i m unable to differentiate btween 'a' ,'b' and 'c'. Pls any one take me to the correct solution

    sure pls follow this snippet
    private char getChar(int keyCode, boolean keyRepeated,int mode) {
    switch(keyCode) {
    case KEY_STAR :
    if(keyRepeated) {
         if(lastChar == symbols[0])
    return symbols[1];
    else if(lastChar == symbols[1])
    return symbols[2];
    else if(lastChar == symbols[2])
    return symbols[3];
    else if(lastChar == symbols[3])
    return symbols[4];
    else if(lastChar == symbols[4])
    return symbols[5];
    else if(lastChar == symbols[5])
    return symbols[6];
    else if(lastChar == symbols[6])
    return symbols[7];
    else if(lastChar == symbols[7])
    return symbols[8];
    else if(lastChar == symbols[8])
    return symbols[0];
    return symbols[0];
    case KEY_NUM1 :
    if(keyRepeated) {
    if(lastChar == '1')
    return symbols[0];
    else if(lastChar == symbols[0])
    return symbols[1];
    else if(lastChar == symbols[1])
    return symbols[2];
    else if(lastChar == symbols[2])
    return symbols[3];
    else if(lastChar == symbols[3])
    return symbols[4];
    else if(lastChar == symbols[4])
    return symbols[5];
    else if(lastChar == symbols[5])
    return symbols[6];
    else if(lastChar == symbols[6])
    return symbols[7];
    else if(lastChar == symbols[7])
    return symbols[8];
    else if(lastChar == symbols[8])
    return '1';
    return '1';
    case KEY_NUM2 :
         if(mode==LOWERALPHA){                 
         if(keyRepeated) {
         if(lastChar == 'c')
         lastChar = '2';
         else if(lastChar == '2')
         lastChar = 'a';
         else
         lastChar++;
         return lastChar;
         return 'a';
         }else if(mode==UPPERALPHA){
              if(keyRepeated) {
         if(lastChar == 'C')
         lastChar = '2';
         else if(lastChar == '2')
         lastChar = 'A';
         else
         lastChar++;
         return lastChar;
         return 'A';           
         }else if(mode==NUMERIC){
              if(keyRepeated)
                   lastChar='2';
              else{
                   lastChar='2';                
              return lastChar;
    case KEY_NUM0 :
    if(keyRepeated) {
    if(lastChar == '0')
    lastChar = ' ';
    //else
    //lastChar++;
    return lastChar;
    return '0';
    case KEY_NUM3 :
         if(mode==LOWERALPHA){
         if(keyRepeated) {
         if(lastChar == 'f')
         lastChar = '3';
         else if(lastChar == '3')
         lastChar = 'd';
         else
         lastChar++;
         return lastChar;
         return 'd';
         }else if(mode==UPPERALPHA){
              if(keyRepeated) {
         if(lastChar == 'F')
         lastChar = '3';
         else if(lastChar == '3')
         lastChar = 'D';
         else
         lastChar++;
         return lastChar;
         return 'D';
         }else if(mode==NUMERIC){
              if(keyRepeated)
                   lastChar='3';
              else{
                   lastChar='3';                
              return lastChar;
    case KEY_NUM4 :
         if(mode==LOWERALPHA){
         if(keyRepeated) {
         if(lastChar == 'i')
         lastChar = '4';
         else if(lastChar == '4')
         lastChar = 'g';
         else
         lastChar++;
         return lastChar;
         return 'g';
         }else if(mode==UPPERALPHA){
              if(keyRepeated) {
         if(lastChar == 'I')
         lastChar = '4';
         else if(lastChar == '4')
         lastChar = 'G';
         else
         lastChar++;
         return lastChar;
         return 'G';
         }else if(mode==NUMERIC){
              if(keyRepeated)
                   lastChar='4';
              else{
                   lastChar='4';                
              return lastChar;
    case KEY_NUM5 :
         if(mode==LOWERALPHA){
         if(keyRepeated) {
         if(lastChar == 'l')
         lastChar = '5';
         else if(lastChar == '5')
         lastChar = 'j';
         else
         lastChar++;
         return lastChar;
         return 'j';
         }else if(mode==UPPERALPHA){
              if(keyRepeated) {
         if(lastChar == 'L')
         lastChar = '5';
         else if(lastChar == '5')
         lastChar = 'J';
         else
         lastChar++;
         return lastChar;
         return 'J';
         }else if(mode==NUMERIC){
              if(keyRepeated)
                   lastChar='5';
              else{
                   lastChar='5';                
              return lastChar;
    case KEY_NUM6 :
         if(mode==LOWERALPHA){
         if(keyRepeated) {
         if(lastChar == 'o')
         lastChar = '6';
         else if(lastChar == '6')
         lastChar = 'm';
         else
         lastChar++;
         return lastChar;
         return 'm';
         }else if(mode==UPPERALPHA){
              if(keyRepeated) {
         if(lastChar == 'O')
         lastChar = '6';
         else if(lastChar == '6')
         lastChar = 'M';
         else
         lastChar++;
         return lastChar;
         return 'M';
         }else if(mode==NUMERIC){
              if(keyRepeated)
                   lastChar='6';
              else{
                   lastChar='6';                
              return lastChar;
    case KEY_NUM7 :
         if(mode==LOWERALPHA){
         if(keyRepeated) {
         if(lastChar == 's')
         lastChar = '7';
         else if(lastChar == '7')
         lastChar = 'p';
         else
         lastChar++;
         return lastChar;
         return 'p';
         }else if(mode==UPPERALPHA){
                   if(keyRepeated) {
         if(lastChar == 'S')
         lastChar = '7';
         else if(lastChar == '7')
         lastChar = 'P';
         else
         lastChar++;
         return lastChar;
         return 'P';
         }else if(mode==NUMERIC){
              if(keyRepeated)
                   lastChar='7';
              else{
                   lastChar='7';                
              return lastChar;
    case KEY_NUM8 :
         if(mode==LOWERALPHA){
         if(keyRepeated) {
         if(lastChar == 'v')
         lastChar = '8';
         else if(lastChar == '8')
         lastChar = 't';
         else
         lastChar++;
         return lastChar;
         return 't';
         }else if(mode==UPPERALPHA){
              if(keyRepeated) {
         if(lastChar == 'V')
         lastChar = '8';
         else if(lastChar == '8')
         lastChar = 'T';
         else
         lastChar++;
         return lastChar;
         return 'T';
         }else if(mode==NUMERIC){
              if(keyRepeated)
                   lastChar='8';
              else{
                   lastChar='8';                
              return lastChar;
    case KEY_NUM9 :
         if(mode==LOWERALPHA){
         if(keyRepeated) {
         if(lastChar == 'z')
         lastChar = '9';
         else if(lastChar == '9')
         lastChar = 'w';
         else
         lastChar++;
         return lastChar;
         return 'w';
         }else if(mode==UPPERALPHA){
              if(keyRepeated) {
         if(lastChar == 'Z')
         lastChar = '9';
         else if(lastChar == '9')
         lastChar = 'W';
         else
         lastChar++;
         return lastChar;
         return 'W';
         }else if(mode==NUMERIC){
              if(keyRepeated)
                   lastChar='9';
              else{
                   lastChar='9';                
              return lastChar;
    default :
    return '\u200D';
    }

Maybe you are looking for

  • Qosmio G30 S-video in composite problem

    Dear Sirs, I cant capture any PAL videos using the win DVD creator capture section. I even tried to change the settings from NTSC to PAL but it just ignores it. Please advice.

  • Oracle 10g OLAP to 11g OLAP upgrade ?

    We currently are planning on a upgrade from 10g OLAP => 11g OLAP. We currently have 12 AWM's in 10g OLAP which we need to move over with associated DML programs and additional SQL reporting views. Questions: 1. Is there any documentation available on

  • Application is too large for target memory

    Hi, I'm working with the Luminary ARM Evaluation Board and Labview Embedded for ARM. Right now I'm having a very critical problem : the code cannot fit into the cpu memory. There are a few things I was wondering if you guys could help me with : 1. Is

  • I keep trying to re-download Mac OS X Lion to my Macbook, and repeatedly get this same error message

    https://imagizer.imageshack.us/v2/587x575q90/r/661/KDyFSI.jpg When I power on my Macbook it automatically takes me to the recovery screen where I am faced with four options. I click on the option to reinstall Mac OS X Lion. It prompts me to enter my

  • Omniportlet Chart sizes

    I'm using Omniportlet to show a bar graph. On the Layout tab when you define the Omniportlet, it allows you to set a width and height in number of pixels. The default is 400 pixels width and 300 pixels height. I have set the numbers to 200 pixels wid