Add (x,y) positioning mode to common dialogs

Add new function to set (x,y) position.
Reset to previous mode after innards is called by fl_* function.
Use magic number for preferred position state.

Note: several commits squashed and commit messages edited by AlbrechtS.
This commit is contained in:
airbrett
2019-06-06 14:01:28 -06:00
committed by Albrecht Schlosser
parent f386bd2cb7
commit ee7577a897
2 changed files with 48 additions and 2 deletions
+3 -1
View File
@@ -24,7 +24,6 @@
# define fl_ask_H
# include "Enumerations.H"
class Fl_Widget;
/** Different system beeps available.
@@ -66,6 +65,9 @@ inline void fl_message_font(Fl_Font f, Fl_Fontsize s) {
FL_EXPORT void fl_message_hotspot(int enable);
FL_EXPORT int fl_message_hotspot(void);
FL_EXPORT void fl_message_position(const int x = 0, const int y = 0);
FL_EXPORT void fl_message_position(int* x = 0, int* y = 0);
FL_EXPORT void fl_message_title(const char *title);
FL_EXPORT void fl_message_title_default(const char *title);