tiny mystery

Charles Hartman charles.hartman at conncoll.edu
Sun Oct 30 09:40:27 EST 2005


Excellent, that does it: openStack rather than preOpenStack. Thanks!

Charles

On Oct 30, 2005, at 8:55 AM, Dave Cragg wrote:

>
> 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
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list