The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Dialog Box ( yes or no)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

gzforever

Poland
14 Posts

Posted - 11/28/2016 :  3:36:38 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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


gzforever

Poland
14 Posts

Posted - 11/28/2016 :  4:58:11 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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 ?
Go to Top of Page

yuki_wu

896 Posts

Posted - 11/28/2016 :  10:29:12 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000