LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I use Function key to control Tab Control??

Hello,

How do I use Function key to control Tab Control??
Example, Using F1 to start, F2  to Pause, F3 to Resume, F4 to Stop, F5 to Exit,..

I see many examples, but I don't know how to setup the function key link to the tab control.

Thank you!
0 Kudos
Message 1 of 4
(3,045 Views)
First of all I would recommend that you not use tab controls as they are known to cause problems and there are slicker alternatives like subpanels.

However, if you do decide to use them there is no way to directly attach them to the builtin key navigation. You need to create the functionality yourself by trapping the key down events associated with the function keys and implementing the selection logic. Check the examples related to event driven programming.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 4
(3,040 Views)

You can use an event structure with the Key Down? event, discard the clicks if they match your keys and use a local variable of the tab control to control the displayed page.

To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf). 


___________________
Try to take over the world!
Message 3 of 4
(3,039 Views)
tst wrote:
> You can use an event structure with the Key Down? event, discard the clicks if they match your keys and use a local variable of the tab control to control the displayed page.
> To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. <a href="http://cnx.rice.edu/content/col10241/latest/" target="_blank">Here</a>, <a href="http://zone.ni.com/devzone/learningcenter.nsf/03f7c60f17aad210862567a90054a26c/55974411828f779086256ce9007504bd" target="_blank">here</a>, <a href="http://digital.ni.com/public.nsf/allkb/7D5F60ADBFD9CDC2862572BA005DD96A?OpenDocument" target="_blank">here</a>, <a href="http://www.mech.uwa.edu.au/jpt/tutorial/index.html" target="_blank">here</a>, <a href="http://www.iit.edu/~labview/Dummies.html" target="_blank">here</a> and <a href="http://www.upscale.utoronto.ca/GeneralInterest/LabView.html" target="_blank">here</a> are a few you can start with and <a href="http://www.fafiles.com/" target="_blank">here</a> are some tutorial videos. You can also contact your local NI office and join one of their courses. In addition, I suggest you read <a href="http://zone.ni.com/devzone/conceptd.nsf/we
bmain/CB5E46406090C61C86256A7000559B66" target="_blank">the LabVIEW style guide</a> and the LabVIEW user manual (Help&gt;&gt;Search the LabVIEW Bookshelf).&nbsp;

Thank you both for the help.
0 Kudos
Message 4 of 4
(3,007 Views)