How to hide the cursor in Fl_Multiline_Output?

9 views
Skip to first unread message

lifeatt...@gmail.com

unread,
Nov 7, 2022, 6:18:01 PM11/7/22
to fltk.general
I have a bunch of Fl_Multiline_Output fields being used for
read-only display. Is there a way to prevent the cursor from
appearing?

Thanks,
Kevin

Greg Ercolano

unread,
Nov 7, 2022, 7:55:55 PM11/7/22
to fltkg...@googlegroups.com

On 11/7/22 15:18, lifeatt...@gmail.com wrote:

I have a bunch of Fl_Multiline_Output fields being used for
read-only display. Is there a way to prevent the cursor from
appearing?

    If you mean the caret (^), short answer:

        output->clear_visible_focus();

    The reason that caret is shown is to allow a visible cue for
    keyboard navigation for select/copy of output text
    (e.g. shift + arrow keys, and then copy with ^C).

    Disabling visible keyboard navigation with clear_visible_focus()
    will disable all keyboard text selection for the widget
    (but mouse selection will still work).

lifeatt...@gmail.com

unread,
Nov 8, 2022, 10:45:43 AM11/8/22
to fltk.general
>If you mean the caret (^), short answer:

Yup, that's what I meant. Much obliged!

Kevin
Reply all
Reply to author
Forward
0 new messages