On 14.04.2011 00:03, Jeff Paranich wrote: > I'm using the built-in fl_input prompt for quick user input, but it seems to > appear in random locations when called
The location on the screen is given by a special 'hotspot' feature that you can also utilize in your own windows. FLTK tries to position the dialog so that one of the buttons (cancel or OK) are underneath the mouse pointer. However, there are some border cases (namely when the mouse is near the window border or on another screen), such that the dialog window may be repositioned to a somewhat random looking position. > and it never has field-input focus. This looks like a known regression in FLTK 1.3, as Ian noted already. The input field should always have the focus in this dialog. If you're using FLTK 1.3, never mind, this will be fixed soon. I can't promise that this will be already in the next snapshot, though. If you're using any other version, please tell us which one. > Are there ways to set this in advance how prompts should behave? No, there is no way other than the default mechanisms described above. > If not I'll have to make my own class. This will give you the control over positioning and focus, but it's not easy to do in such a way as fl_input() and others are doing it, i.e. as a dialog that can be called from a callback function. You can look at src/fl_ask.cxx how it is done there. Albrecht _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

