Answer file with prompt?

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
thatkeith
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 346
Joined: Mon Mar 01, 2010 7:13 pm
Location: London, UK
Contact:

Answer file with prompt?

Post by thatkeith » Mon Mar 07, 2016 5:24 pm

Is the prompt part of the answer file command just history now, on Mac OS X? When I use this the file dialog that opens doesn't show the prompt text. That's a real shame, as it can be a useful bit of user prompting. Is there any way to achieve this?

k
Technical Writer, Meta
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist

quailcreek
Posts: 746
Joined: Sun Feb 04, 2007 11:01 pm
Location: McKenna, WA

Re: Answer file with prompt?

Post by quailcreek » Mon Mar 07, 2016 5:38 pm

Hi,
What version of LC are you using? The prompt is working fine. I tested LC 8 DP 15 and LC 7.1.3.rc1. If you use as sheet there is no place to put the prompt.
Tom
MacBook Pro OS Mojave 10.14

thatkeith
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 346
Joined: Mon Mar 01, 2010 7:13 pm
Location: London, UK
Contact:

Re: Answer file with prompt?

Post by thatkeith » Mon Mar 07, 2016 7:28 pm

I'm using LiveCode Community 7.1.2, the stable build. My code is simply this:

Code: Select all

answer file "Where is krpanotools?"
The file dialog has no prompt or space at the top for prompt text. It looks like an evolution of the standard OS file dialog – although for my needs it would be a backwards step. :-/

EDIT: I'm using Mac OS X 10.11, El Capitan.
Technical Writer, Meta
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Answer file with prompt?

Post by [-hh] » Mon Mar 07, 2016 7:51 pm

Bug #16264 (2016-01-13), is a MacOS 10.11 special.
There is currently a 'workaround' (found by Bryan A.):

answer file <myprompt> titled "I wear a kilt!"

displays <myprompt> as prompt (=dialog title) and "I wear a kilt!" is ignored.

[Edit. Corrected typos, I need a new keyboard...]
Last edited by [-hh] on Mon Mar 07, 2016 8:36 pm, edited 2 times in total.
shiftLock happens

thatkeith
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 346
Joined: Mon Mar 01, 2010 7:13 pm
Location: London, UK
Contact:

Re: Answer file with prompt?

Post by thatkeith » Mon Mar 07, 2016 8:17 pm

Wearing a kilt is never ignored down here in London! ;)
But that's great. The styling of the prompt text is a bit weak and non-standard, but hey – it's a whole pile of better than nothing!

Thanks. :)
Technical Writer, Meta
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist

Post Reply

Return to “Talking LiveCode”