T O P I C R E V I E W |
gzforever |
Posted - 11/28/2016 : 3:36:38 PM I need to create a simple dialog box. The dialog box should have only two buttons - 'yes' or 'no' (it can be 'ok' or 'cancel') and the text "do you want to continue" above.
If user press YES, it should change the value of int variable - i=1. If user press No , the variable i=0.
Then i can decide what script should do, depending on the user choice.
Kind Regards, Jaromir Zarczynski
|
2 L A T E S T R E P L I E S (Newest First) |
yuki_wu |
Posted - 11/28/2016 : 10:29:12 PM Hi Jaromir,
type –n can help to create a dialog box with Yes and No buttons.
Please take a look at this item and see if this applies to you: http://www.originlab.com/doc/LabTalk/ref/Type-cmd#-n.3B_Display_string_in_a_dialog_box_with_Yes_and_No_buttons
Regards, Yuki OriginLab
|
gzforever |
Posted - 11/28/2016 : 4:58:11 PM i found the solution:
http://www.originlab.com/doc/LabTalk/guide/Getting-Numeric-and-String-Input
Everything works great for me. This is exactly what i wanted (i just added int variable, which i desired), except one thing. I don't want the 'cancel' button in dialog box. How to get rid of it ? |
|
|