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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Dialog Box ( yes or no)

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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 ?

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000