summaryrefslogtreecommitdiff
path: root/src/Fl_Window.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-03-22 17:47:44 +0000
committerManolo Gouy <Manolo>2016-03-22 17:47:44 +0000
commit6ec8ebc4f83fa2c143bff54e66672226cdf7d85c (patch)
treef91bde6630403fd3961ae4bdf9a2c554ea5c12d1 /src/Fl_Window.cxx
parent6302b3da00f8116e1bf62629c6d3ab0f719d1a33 (diff)
Rewrite Fl_Window::show() and Fl_Menu_Window::show() under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11400 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Window.cxx')
-rw-r--r--src/Fl_Window.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Fl_Window.cxx b/src/Fl_Window.cxx
index cbd0863ff..c6e3454ef 100644
--- a/src/Fl_Window.cxx
+++ b/src/Fl_Window.cxx
@@ -26,6 +26,7 @@
#include <FL/Fl_Window_Driver.H>
#include <FL/Fl_RGB_Image.H>
#include <FL/Fl_Window.H>
+#include <FL/Fl_Tooltip.H>
#include <stdlib.h>
#include "flstring.h"
@@ -493,6 +494,18 @@ void Fl_Window::label(const char *name, const char *mininame) {
pWindowDriver->label(name, mininame);
}
+void Fl_Window::show() {
+ image(Fl::scheme_bg_);
+ if (Fl::scheme_bg_) {
+ labeltype(FL_NORMAL_LABEL);
+ align(FL_ALIGN_CENTER | FL_ALIGN_INSIDE | FL_ALIGN_CLIP);
+ } else {
+ labeltype(FL_NO_LABEL);
+ }
+ Fl_Tooltip::exit(this);
+ pWindowDriver->show();
+}
+
//
// End of "$Id$".
//