Am On 22.10.2011 22:36, schrieb David wrote:
> When Fl_Input widget has take_focus() run, the cursor goes to that field, but 
> nothing highlighted unless it was already highlighted when you tab out of the 
> field.  If you tab to the field the existing contents are highlighted.
>
> Type some text in to a input field, tab out, have somehting call that input 
> widget take_focus() ... it goes back with no highlighting.
>
> ??
>

That's intentional. The *selection* is only used when the focus
changes by keyboard navigation. This was done so that you can
remove/overwrite the whole contents easily, as it is done in other
GUI's (e.g. Windows).

If you want to do something similar when calling take_focus(), then
you can do it yourself (look for position() and mark() in the docs).

Something like input->position(0,input->size()); ought to do it.

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

Reply via email to