How to present a dialog box with focus.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
How to present a dialog box with focus.
Hi
Is there any way that the user may be presented with an answer dialog box where the cursor is already flashing in the answer dialog box, so enabling the user to enter data without first having to click in the dialog box?
Is there any way that the user may be presented with an answer dialog box where the cursor is already flashing in the answer dialog box, so enabling the user to enter data without first having to click in the dialog box?
-
- Livecode Opensource Backer
- Posts: 10094
- Joined: Fri Feb 19, 2010 10:17 am
Re: How to present a dialog box with focus.
I think you will have to 'roll your own', which is really very easy.
BUT I think you mean ASK, not ANSWER:
ANSWER:
- -
ASK:
- -
AND the Focus is already present with ASK.
SO: can you explain (maybe with a picture) what you need?
BUT I think you mean ASK, not ANSWER:
ANSWER:
- -
ASK:
- -
AND the Focus is already present with ASK.
SO: can you explain (maybe with a picture) what you need?
Re: How to present a dialog box with focus.
Hi Richmond 62,
Many thanks for your quick reply.
I should have said ASK in my question to you, I am using the ASK in the code. However, the cursor is NOT present..
Sorry, I haven't a clue how to make a picture of the dialog box.
Many thanks for your quick reply.
I should have said ASK in my question to you, I am using the ASK in the code. However, the cursor is NOT present..
Sorry, I haven't a clue how to make a picture of the dialog box.
-
- Livecode Opensource Backer
- Posts: 10094
- Joined: Fri Feb 19, 2010 10:17 am
Re: How to present a dialog box with focus.
I don't know which operating system you are working with: but all the systems
for development supported by LiveCode have a way to take screen shots.
for development supported by LiveCode have a way to take screen shots.
Re: How to present a dialog box with focus.
Hi again,
I looked into taking a screen shot, made a jpeg of it, copied to clipboard, but it wouldn't paste into here. Not to worry m- that's not the main point, which is, that the dialog box, coded by does not show a cursor in the box. Any idea how to remedy this ?
I looked into taking a screen shot, made a jpeg of it, copied to clipboard, but it wouldn't paste into here. Not to worry m- that's not the main point, which is, that the dialog box, coded by
Code: Select all
ask question "Enter the business name." titled field "fieldboxtitle" of cd "template1"
-
- Livecode Opensource Backer
- Posts: 10094
- Joined: Fri Feb 19, 2010 10:17 am
Re: How to present a dialog box with focus.
You do NOT paste images here:
- -
You ADD FILES and then:
- -
Insert them into the text using the 'Place inline' button.
And your code makes no sense to me at all, I'm afraid.
- -
You ADD FILES and then:
- -
Insert them into the text using the 'Place inline' button.
And your code makes no sense to me at all, I'm afraid.
-
- Livecode Opensource Backer
- Posts: 10094
- Joined: Fri Feb 19, 2010 10:17 am
Re: How to present a dialog box with focus.
The first reason is because you did NOT do as I told you: use ASK:
- -
You have to make an effort to follow instructions..
-
- -
You have to make an effort to follow instructions..
-
Re: How to present a dialog box with focus.
On MacOS 12.6.3 on INTEL with LC 9.6.9 rc2 I also do NOT get a blinking cursor with a simple -> ask "whatever..."
Re: How to present a dialog box with focus.
Hi
I thought my line
'I should have said ASK in my question to you, I am using the ASK in the code.'
would have made it clear that I made a mistake in my original post, when I indicated, wrongly, that it was with an Answer dialog, when I should have said that it was with an Ask dialog.
So yes, I have been using the Ask dialog all along, and the cursor has not appeared in the input line until the box is clicked. Hope this is clear, now, sorry I have caused a bit of a kerfuffel.
I thought my line
'I should have said ASK in my question to you, I am using the ASK in the code.'
would have made it clear that I made a mistake in my original post, when I indicated, wrongly, that it was with an Answer dialog, when I should have said that it was with an Ask dialog.
So yes, I have been using the Ask dialog all along, and the cursor has not appeared in the input line until the box is clicked. Hope this is clear, now, sorry I have caused a bit of a kerfuffel.
Re: How to present a dialog box with focus.
I always get a blinking cursor in an "Ask" dialog. There are occasions when I do not, but they are rare, and always are invoked in a long-running handler.
Always have. Mac, of course.
Craig
Always have. Mac, of course.
Craig
Re: How to present a dialog box with focus.
I should have mentioned, I'm using Windows. Any body any ideas how to force the cursor to be present in the ASK dialog box ?
-
- Livecode Opensource Backer
- Posts: 10094
- Joined: Fri Feb 19, 2010 10:17 am
Re: How to present a dialog box with focus.
Personally I'd go back to my earlier idea and make my owe palette substack to do exactly what I wanted, the way I wanted.
Re: How to present a dialog box with focus.
Just as a diagnostic, what happens if you type this plain version in the message box?
If that works, we can test with the other parameters.
Code: Select all
ask "What's your name?"
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: How to present a dialog box with focus.
See the dictionary where all the optional parameters are listed.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- Livecode Opensource Backer
- Posts: 10094
- Joined: Fri Feb 19, 2010 10:17 am
Re: How to present a dialog box with focus.
I did see the dictionary:
- -
BUT, did not really equate what I saw there with this:
-
- -
BUT, did not really equate what I saw there with this:
Code: Select all
ask question "Enter the business name." titled field "fieldboxtitle" of cd "template1"