tiny mystery
Dave Cragg
dcragg at lacscentre.co.uk
Sun Oct 30 08:55:07 EST 2005
On 30 Oct 2005, at 12:56, Charles Hartman wrote:
> I've got a dialog substack that includes two fields with
> listBehavior set to true. I fill them up from scripts -- a
> preOpenStack handler for one, and for the other an "on
> selectionChanged" handler called when something from the first list
> one is selected.
>
> I don't want anything to be selected in either one until the user
> selects something. So at the end of both list-filling handlers, I
> include the line
>
> set the hilitedLine of fld "oneOfTheListFields" to 0
>
> It works in one (the one filled after the user selects something
> from the other) but not in the one filled by the preOpenStack
> handler. That list shows a hilite on the blank line after the last
> item in the list. How do I get rid of it??
One way round this would is to put the above line in an openStack
handler instead of preopenStack.
Another way might be to set the traversalOn property of the fields to
false. (Which might not be what you want.)
I think the problem is that Rev will focus on the first control with
traversalOn *after* the preOpenStack handler runs. If ths control is
a list field, it will hilite one of the lines (not sure why it's the
last line in your case, it's the first here).
Cheers
Dave
More information about the use-livecode
mailing list