Anda di halaman 1dari 1

Setting Keyboard Shortcuts for Controls You can assign keyboard shortcuts to controls so users can navigate the

front pa nel window without a mouse. You can assign modifiers, such as the <Shift> and <C trl> keys, to some shortcut keys. You cannot assign the same key combination to more than one control. LabVIEW does not respond to keyboard shortcuts for hidden controls. Complete the following steps to set key navigation for a control and to set a co ntrol so it is not included when the user tabs from control to control while run ning the VI. Right-click a front panel control and select AdvancedKey Navigation from the shor tcut menu to display the Key Navigation page of the Properties dialog box. You a lso can right-click a control, select Properties from the shortcut menu, and cli ck the Key Navigation tab. To set key navigation for an array control, right-cli ck the array border. To set key navigation for an array element, right-click the element. Note The AdvancedKey Navigation shortcut menu item is dimmed for indicators bec ause you cannot enter data in an indicator. From the pull-down menu in the Focus section, select the shortcut key you want t o assign to the control. If you assign <PageUp>, <PageDown>, <Home>, or <End> as a shortcut key in the Fo cus section, you no longer can use that key to select items in listboxes or tree controls. To include the <Shift> key and/or <Ctrl> key in a keyboard shortcut, place a che ckmark in the Shift key and/or the Control key checkboxes. These checkboxes are available if you select a function key, such as <F1>, <F2>, and so on, in the Fo cus pull-down menu. Note (Mac OS) Keyboard shortcuts for the function keys work only if the functi on keys are not assigned as shortcut keys for Expos. LabVIEW does not support <Vo lumeUp>, <VolumeDown>, and function keys <F15> to <F24> as shortcut keys on Mac OS. To prevent users from accessing a control using the <Tab> key while the VI is ru nning, place a checkmark in the Skip this control when tabbing checkbox. Note In the LabVIEW Full and Professional Development Systems, you also can us e the Key Down event to generate an event when the user presses a specific key o n the keyboard. You can assign keyboard shortcuts to toggle Boolean controls using the Toggle se ction in the Key Navigation page, or to increment and decrement Numeric, Slide, Knob, Ring, and Enum controls using the Increment and Decrement sections in the Key Navigation page. The Toggle section is available only for Boolean controls, and the Increment and Decrement sections are available only for Numeric, Slide, Knob, Ring, and Enum controls. You also can use the Control properties to assign keyboard shortcuts to controls and set tabbing behavior programmatically.

Anda mungkin juga menyukai