Hilites

Scott Rossi scott at tactilemedia.com
Thu Mar 3 12:06:04 EST 2005


Recently, Mark Smith  wrote:

> I have a mainstack, with a list field that contains a list of files.
> When I click on a line the line is hilited. If I double-click on the
> line, a sub-stack opens showing the contents of the file it refers to.
> I have some arrow key stuff in the sub-stack that moves the hilited
> line in the main stack, and loads the appropriate file into the
> sub-stack. The problem is that when I then close the sub-stack, the
> hilite disappears from the mainstack. Is this expected behaviour?

One might argue that it's expected behavior in that the field is losing
focus, but it's still an unwanted problem.

I faced this same issue and wound up writing a routine to re-hilite the
field upon resuming the stack.  Store the hilited line in a custom property
or global, and then set the hilitedlines of the field to the stored value
within a resumeStack handler in the card script or stack script.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com



More information about the use-livecode mailing list