For example, in a card with one button and one editable field, if, in the button script:
Code: Select all
on mouseUp
focus on fld 1
end mouseUp
Craig
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
on mouseUp
focus on fld 1
end mouseUp
Code: Select all
hide msg; focus on fld 2 -- this works
It could be, but I wasn't able to reproduce it on this box in 6 - 7.x versions of Lc, using 'focus on field 1' from the message box actually put the focus on the field but then returned it to the message box in those versions.
Code: Select all
select after fld 1
That has always worked. Msg seems to "get" more narrowly defined instructions, like "after", but "focus" is what I was asking about. This because the dictionary says quite clearly what this command should do to a field. Doing so from, say, a button script works just fine.select after fld 1
A button has no selectable text.dunbarx wrote: ↑Sun Nov 03, 2019 1:21 amThat has always worked. Msg seems to "get" more narrowly defined instructions, like "after", but "focus" is what I was asking about. This because the dictionary says quite clearly what this command should do to a field. Doing so from, say, a button script works just fine.select after fld 1
Then the sensible thing might be to use 'that.'That has always worked.