Re: Hilited text in list boxes
Boyd Sweeney (starnet!apple!puzzler.nichols.com!sweeneyb)
Wed, 31 Aug 1994 08:28:27 -0500
>>
>> Greetings,
>>
>> I have two text fields with list behavior. I would like to select an entry
>> in one field and have it remain hilited as I select an entry from the other
>> field. Actually, I would like both entries to remain hilited as I push a
>> button. Any suggestions?
>
>Get the 1.4 beta. It supports this automatically. You will have to
>modify the scripts slightly however. Instead of just getting the
>selectedText, you'd have to "get the selectedText of field XXX" for
>those fields that are retaining selected items.
>
>Your only option in 1.3 is to set the backColor and foreColor of the
>text in the lines as they are selected, and to unset them when
>deselected. The trouble is, it's too easy to lose track of the
>selection in which case you end up with extra lines that appear to be
>selected.
>
This was a real pain in 1.3. In order to get something that looked like a
true list box, you also had to pad your strings with spaces. Otherwise,
only a portion of a line appeared to be hilited when you set its backColor.
The 1.4 beta is a great improvement. If I get the time, I plan to upgrade
my application once most of the bugs are shaken out of the beta.
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ Boyd Sweeney Scientist, Nichols Research Corporation _/
_/ sweeneyb@puzzler.nichols.com (205) 883-1170x1775 _/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/