> I'm using the built-in fl_input prompt for quick user input, > but it seems to appear in random locations when called and it > never has field-input focus. Are there ways to set this in > advance how prompts should behave?
Not really - the "common dialogs", of which the standalone fl_input() widget is one, are pretty much at the mercy of the window manager in terms of placement and so forth. Ideally, they'd pop at or near the mouse position, but it seems that most current WM on most platforms just pop them wherever they like... We have not, historically, provided any means to set the position of these dialogs - though I suspect there may be some nasty hack to obtain the window pointer and use that to force a position on the dialog. (Maybe, and only after it was actually shown, I suspect!) As to why the input filed does not have focus, I'm not sure... That does seem unexpected - what version of fltk are you using and what host platform? > If not I'll have to make my own class. Yup - that certainly would allow you to set the position and so forth. Not sure what's going on with the input focus though. That might be a regression - in a quick test, I'm occasionaly seeing different behaviours between 1.1 and 1.3, with 1.1 "more right". 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

