From a529510e5b8f84b15aacd103936df89bb767bb29 Mon Sep 17 00:00:00 2001
From: Michael R Sweet
Default handler for all event types. Your handle() method should call this for all events that it does not handle -completely. You must pass it the same bounding box as passed to -draw(). Handles FL_PUSH, FL_DRAG, +completely. You must pass it the same bounding box as you do +when calling drawtext() from your draw() +method. Handles FL_PUSH, FL_DRAG, FL_RELEASE to select text, handles FL_FOCUS and FL_UNFOCUS to show and hide the cursor. diff --git a/documentation/Fl_Preferences.html b/documentation/Fl_Preferences.html index b5ce6a4b0..fc5c723d4 100644 --- a/documentation/Fl_Preferences.html +++ b/documentation/Fl_Preferences.html @@ -128,7 +128,7 @@ entry names. The index must be within the range given by the base preference group. This function is rarely used as deleting the base preferences flushes automatically. -
Creates a path that is related to the preferences file and that is usable for application data beyond what is covered by diff --git a/documentation/osissues.html b/documentation/osissues.html index 692a2ac38..a140dc6b8 100644 --- a/documentation/osissues.html +++ b/documentation/osissues.html @@ -340,18 +340,36 @@ is shown using the Fl_Window::icon() method.
Sets the icon for the window to the passed pointer. You will need to cast the icon Pixmap to a char * when -calling this method. To set the icon using a bitmap compiled +calling this method. To set a monochrome icon using a bitmap compiled with your application use:
#include "icon.xbm"
+fl_opendisplay(); // needed if display has not been previously opened
+
Pixmap p = XCreateBitmapFromData(fl_display, DefaultRootWindow(fl_display),
icon_bits, icon_width, icon_height);
window->icon((char *)p);
+To use a multi-colored icon, the XPM format and library +should be used as follows: + +
+#include "icon.xpm" + +fl_opendisplay(); // needed if display has not been previously opened + +Pixmap p, mask; + +XpmCreatePixmapFromData(fl_display, DefaultRootWindow(fl_display), + icon_xpm, &p, &mask, NULL); + +window->icon((char *)p); ++
| NOTE: -- cgit v1.2.3 |