Page 1 of 1

Answer file with prompt?

Posted: Mon Mar 07, 2016 5:24 pm
by thatkeith
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

Re: Answer file with prompt?

Posted: Mon Mar 07, 2016 5:38 pm
by quailcreek
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.

Re: Answer file with prompt?

Posted: Mon Mar 07, 2016 7:28 pm
by thatkeith
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.

Re: Answer file with prompt?

Posted: Mon Mar 07, 2016 7:51 pm
by [-hh]
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...]

Re: Answer file with prompt?

Posted: Mon Mar 07, 2016 8:17 pm
by thatkeith
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. :)