From ee7577a89708370e424d90221cecf05c4b2ec121 Mon Sep 17 00:00:00 2001 From: airbrett Date: Thu, 6 Jun 2019 14:01:28 -0600 Subject: 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. --- FL/fl_ask.H | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'FL') diff --git a/FL/fl_ask.H b/FL/fl_ask.H index 63fe87435..9fad23d8e 100644 --- a/FL/fl_ask.H +++ b/FL/fl_ask.H @@ -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); -- cgit v1.2.3