third button on utils.editbox/utils.inputbox?

Posted by Fiendish on Thu 23 Jun 2011 08:22 AM — 5 posts, 13,836 views.

USA Global Moderator #0
utils.msgbox has a type field that allows for creation of 3 buttons. Is it possible to have 3 buttons on an editbox too?
Australia Forum Administrator #1
I must have overlooked this post originally sorry.

The 3 buttons on msgbox are part of the Windows MsgBox function.

Why would you need 3 buttons on an Edit box? Basically you type text into it and then either proceed (OK) or decide not to (Cancel).
USA Global Moderator #2
Quote:
Why would you need 3 buttons on an Edit box?

either different behaviors post dialog dismissal or different filter functions, I guess. I actually have a desired use case for the first one which is a differentiation between, essentially, "never ask me this question" and "ask me again later" and "I have an answer now". If it's not trivial to add don't worry about it. I can do without one of them.

Quote:
Basically you type text into it and then either proceed (OK) or decide not to (Cancel).

It's actually slightly more complicated than that now, isn't it. You made an option for read-only (at my request of course) which means that the edit box is now capable of being used as a mechanism just for displaying large amounts of text with potentially many response scenarios. A messagebox plus, if you will.
Amended on Sat 16 Jul 2011 04:58 AM by Fiendish
Australia Forum Administrator #3
Oh I see. It's Yes, No, and "I'm not sure".
USA Global Moderator #4
Pretty much.