> I would like to implement to my application a widget, that would
> work like a commad line or if know know the AutoCad input line. I
> think that multiline input could work for me, but what I need is
> to have part of the text read only and retrieve only the user input
> value.
>
> exemple:
> select action (D-delete,N-new,C-copy): D
> I need the first part to be readonly and get only the value D when
> the user click enter.

I don't know AutoCad or its input line, but I assume that you want
a prompt and then a small input area?

Why not position the text input widget of your choice with enough
space on its left hand side to allow for the read-only text, and set
it each time using Fl_Widget::label() or, better still, copy_label() ?

Or use two separate widgets, one read-only, and one for the input?
Adjust their colours to match, set to FLAT_BOX, and then put them in
a group with appropriate box type to form a single visual unit.

D.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to