High Lighting in a List Field??
janschenkel at yahoo.com
Wed Jul 11 12:00:03 CDT 2007
--- Dave <dave at looktowindward.com> wrote:
> Hi All,
> I have a list field, with the following script:
> on mouseUp
> local mySelectedLine
> local myMovieFilePathName
> local muNumberOfFrames
> put the selectedLine into mySelectedLine
> select empty
> put mySelectedLine & cr after msg
> end mouseUp
> In order for "selectedLine" to return the correct
> line number, I had
> to set the autoHilite property true. If I do this
> not surprisingly
> the line selected gets high lighted, however I don't
> want that!
> Depending on what is selected I want to either high
> light it or beep
> and NOT high light it.
> I've been playing around for a while now and can't
> seem to find a way
> of doing this.
> Any ideas?
> All the Best
You're probably better off working with the
'hilitedLine' property of the field - as for not
allowing the user to select certain lines, turn on the
'autoHilite' property and try something like this in
the field script:
if the hilitedLine of me is 7 then
set the hilitedLine of me to sPrevHilitedLine
else put the hilitedLine of me into sPrevHilitedLine
With this script, the user can select any line but the
seventh. Naturally you can make up a custom property
to hold the non-hilitable lines, modify the script to
compare the hilitedLine to the contents of that custom
property, and place the modified script in the stack
Hope this helped,
Quartam Reports & PDF Library for Revolution
"As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld)
Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out.
More information about the use-livecode