> When text cursor moves past the end or beginning, using the 
> left and right arrow keys, the input widget will lose focus 
> to the next/previous widget. Should it do that? I have tried 
> a few applications in windows and linux/gtk and they do not 
> shift focus. Personally I would like the cursor to stop when 
> I come to the end of a line.

Well - this has always been one of those things, but the behaviour you
describe is (IIRC) the documented behaviour for fltk.

Other toolkits have differing views on what's "right" here - as you
note, some handle this differently.

> I have fixed that for me with the following change in "int 
> Fl_Input_::position(int p, int m)"
> I replaced "if (p == position_ && m == mark_) return 0;"
> with "if (p == position_ && m == mark_) return 1;"

I think that, rather than changing the underlying lib, I'd just make a
derived widget (or set of derived widgets) that did the "right thing"
here, so that nay code I generated would not depend on mods to the
underlying lib.

Provides a more robust and portable solution for the longer term.

I doubt there's much scope for "officially" changing the fltk lib
behaviour at this stage, as the existing pattern is now well established
(even if not everyone likes it...!)



SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

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

Reply via email to