Page 1 of 1
keeping all selected text hilited
Posted: Thu Oct 20, 2011 6:59 pm
by howeyb
I have a text fld with a paragraph in it and I want the user to be able to hilite more than one chunk of text at the same time. Under colours and patterns in the property inspector for the fld, I set the text hilite to yellow. When I hilite a word or chunk of text in the paragraph by selecting it with a mouse and then go to hilite another selection, the first text selection that I hilited is unhilited (only one chunk of text can be hilited at the same time). As a researcher running an experiment, I would like ALL the text the participant hilited to REMAIN hilited (and then I will save that information but I think I know how to do that..."put the selectedtext into VARIABLE" right?) so,
How to I keep all selected text hilited?
Re: keeping all selected text hilited
Posted: Thu Oct 20, 2011 7:50 pm
by mwieder
I don't know of any OS that will let you do that - it's contrary to a user's expectations of how selecting text should work.
Nonetheless, if you want to do this you'll have to fake the highlighting yourself. Set the background color of the selected text to the highlighted color. Probably should squirrel the text away while you're at it, to save the pain of trying to select it later on. How do you intend to deal with unselecting text?
Re: keeping all selected text hilited
Posted: Thu Oct 20, 2011 9:14 pm
by bn
Hi Howeyb,
a while ago this came up in this forum and this is the stack I made at the time. It lets you select multiple parts of a text, it always selects a full word, it puts the selected chunks in another field and lists the selections in the order of the field with the position of the first character of the selection.
Just click drag to select, alt / option click into the field to deselect, shift click to make contiguous selection.
happy researching
Kind regards
Bernd
Re: keeping all selected text hilited
Posted: Fri Oct 21, 2011 2:48 am
by howeyb
Thanks so much...this will let me do what I want.
Betty