05-06-2013 03:34 AM
Hello,
In my VI i have used a two button dialogue box, i.e yes or no buttons.keyfocus will be on yes button, In run-time I can interchange keyfocus from one button to other using Tab key. Is it possible by using left/right navigation key of keyboard? If so, how?
Thanking you,
sushmith
05-06-2013 03:45 AM
05-06-2013 03:49 AM
Hello,
My own dialogue means with random text box and buttons arranged like two button dialogue box is it..?? Can you please elaborate little more..??
Thanking you,
sushmith
05-06-2013 03:53 AM - edited 05-06-2013 03:54 AM
Hi sushmith,
create your own VI with two buttons and a text indicator. Create all the logic needed to handle button or key events. Create all the logic needed to increase size with text (as the "Two ButtonDialog" does). Set that VI to "dialog" in its properties. Do all this and you will have a VI to replace the original TwoButtonDialog that additionally handles left/right key...
Btw. is there a standard UI/OS that doesn't use the tab key to switch between UI elements? I never came across some UI that faciliate the left/right key, atleast not for selecting UI elements...
05-06-2013 04:03 AM
Hello,
I got it. Thank you. One more question is, If I create a sapearate VI like that, It will have a big block diagram right? How can I add it like a sub VI?
I mean to say, default two button dialogue will have a small box with say 5 in/out ports. we just have to connect message to be displayed , button names and output lines. So how can I create same kind of box with the modifications required?? i.e How can I create a sub VI? Can you please help me with that?
Thanking you,
sushmith
05-06-2013 04:16 AM - edited 05-06-2013 04:16 AM
05-06-2013 08:01 AM
OP has chosen to continue here...