[SOLVED] Ask password dialogue buttons
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
[SOLVED] Ask password dialogue buttons
Hello All,
I am wondering if it is possible to change the standard buttons (OK and Cancel) of the ask password dialogue? E. g. 'Yes' instead of 'OK', 'No' instead of 'Cancel'?
Thanks!
I am wondering if it is possible to change the standard buttons (OK and Cancel) of the ask password dialogue? E. g. 'Yes' instead of 'OK', 'No' instead of 'Cancel'?
Thanks!
Last edited by redfield on Mon Apr 06, 2020 11:14 am, edited 1 time in total.
Re: Ask password dialogue buttons
You can put any number of buttons on an answer dialog, I don't think (or haven't found) the way to do this specifically with the ask password dialog.
http://lessons.livecode.com/m/4603/l/56 ... h-the-user
http://lessons.livecode.com/m/4603/l/56 ... h-the-user

Re: Ask password dialogue buttons
Yes, this is possible, because the ASK and ANSWER dialogs are, well, just stacks! 
Open the message box, type:
hit ENTER and edit it right away!
Hint:
Do ONLY change the LABEL of these two buttons, but not their NAME!
There are script in the stacks that need them to be named OK and CANCEL.
If you want a "temporary" solution, do like this:

Open the message box, type:
Code: Select all
toplevel "Ask Dialog"
Hint:
Do ONLY change the LABEL of these two buttons, but not their NAME!
There are script in the stacks that need them to be named OK and CANCEL.
If you want a "temporary" solution, do like this:
Code: Select all
...
set the LABEL of btn "Cancel" of cd 1 of stack "Ask Dialog" to "No"
set the LABEL of btn "OK" of cd 1 of stack "Ask Dialog" to "Yes"
ask password...
...
Re: Ask password dialogue buttons
If you are on a Mac then only the "temporary" solution is possible, since we are not allowed
to save things/stacks inside of the app package in the APPLICATION folder!
to save things/stacks inside of the app package in the APPLICATION folder!
Re: Ask password dialogue buttons
Okay I'm on Linux and used the temporary solution, which works well. I wasn't aware that those dialogues are stacks
. Many thanks!

-
- VIP Livecode Opensource Backer
- Posts: 10049
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Ask password dialogue buttons
Inspiration: LiveCode is made with LiveCode. Everything you see in the IDE is scripted in LiveCode. It's all infinitely moddable.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn