I’m creating a program that uses a second screen for a projection device to project info. I can’t figure out how to prevent the operator – who is using the interface on the 1st screen (a laptop) – from moving his mouse into the 2nd screen and selecting text and highlighting. I have the textarea set to “read only” but that doesn’t stop what I’m describing. I’ve looked at every event available in both the textarea and the 2nd screen and its window and nothing seems to do the trick.
It seems I’ve done this before, that is, made a textarea unselectable. But I can’t for the life of me do it now. What am I missing?
Thanks. That does stop the selection of text by mouse. Only problem left is it still leaves a blinking cursor at position 0 and you can still select text using arrow keys and shiftdown. Any cure for that?
Return true in mouse down event on 1st screen works well. It’s this 2nd screen that’s giving me grief. My screen consists only of 3 labels and a textarea.
You could completely suppress any interaction by displaying the TextArea over canvas with DrawInto and keep the actual TextArea off view. Of course you also need to manage MouseWeel in the canvas to change scrollPosition in the actual TextArea.
Otherwise, if you don’t need styled text, a multiline label won’t accept focus.
[quote=310364:@Michel Bujardet]You could completely suppress any interaction by displaying the TextArea over canvas with DrawInto and keep the actual TextArea off view. Of course you also need to manage MouseWeel in the canvas to change scrollPosition in the actual TextArea.
Otherwise, if you don’t need styled text, a multiline label won’t accept focus.[/quote]
Sounds like a good work-around. I’ll see what happens.