--- Dave <[EMAIL PROTECTED]> 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 > Dave >
Hi Dave, 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: ## local sPrevHilitedLine on selectionChanged if the hilitedLine of me is 7 then beep set the hilitedLine of me to sPrevHilitedLine else put the hilitedLine of me into sPrevHilitedLine end selectionChanged ## 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 script. Hope this helped, Jan Schenkel. Quartam Reports & PDF Library for Revolution <http://www.quartam.com> ===== "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. http://answers.yahoo.com/dir/?link=list&sid=396545433 _______________________________________________ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution