hotkeys for button choices in answer

Paul Hibbert lc at pbh.on-rev.com
Mon Sep 3 01:49:29 EDT 2012


On 2012-09-02, at 9:33 AM, Dr. Hawkins wrote:

> I'm kind of surprised that I'm not tripping over them; it's been
> nearly 30 years since MS had these in word 1.0 . . .
> 
> Anyway, in an answer dialog, is there any way to have accelerator/hot
> keys other then enter/escape?  For example, Y for Yes when the default
> is no?
> 
> Or do I need my own little stack to replace answer?
> 
> -- 
> The Hawkins Law Firm
> Richard E. Hawkins, Esq.
> (702) 508-8462
> HawkinsLawFirm at gmail.com
> 3025 S. Maryland Parkway
> Suite A
> Las Vegas, NV  89109
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

The following script works fine for me, this is on a Mac, but I think you can just use ctrl instead on Win…

One test button & one field called resultField

on mouseUp
   answer "Press cmd+y for Yes, cmd+t for Test or cmd+c for Cancel" with "Yes" or "Test" or "Cancel" as sheet
   put it into fld "resultField"
end mouseUp

Regards,

Paul



More information about the use-livecode mailing list