From a73c7f58e6a0bb4b4eab922396500c25c118a18b Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Wed, 15 Mar 2000 18:57:07 +0000 Subject: Documentation updates for 1.0.8. FLUID GUI tweeks (OK and Cancel use now consistent, spacing now consistent, Courier font for code, etc.) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1039 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/osissues.html | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'documentation/osissues.html') diff --git a/documentation/osissues.html b/documentation/osissues.html index 83f6d6897..f9ec4a51a 100644 --- a/documentation/osissues.html +++ b/documentation/osissues.html @@ -232,10 +232,10 @@ MyWindow::~MyWindow() {

Setting the Icon of a Window

- FLTK currently supports setting a window's icon *before* it is shown +FLTK currently supports setting a window's icon *before* it is shown using the Fl_Window::icon() method.

void Fl_Window::icon(char *)

- Sets the icon for the window to the passed pointer. You will need to +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 with your application use: @@ -249,6 +249,11 @@ Pixmap p = XCreateBitmapFromData(fl_display, DefaultRootWindow(fl_display), window->icon((char *)p); + +

Note: you must call +Fl_Window::show(argc, argv) for the icon to be used. The +Fl_Window::show() method does not bind the icon to the window. +

WIN32-Specific Interface

+ +You can also use the LoadImage() and related functions to load +specific resolutions or create the icon from bitmap data. + +

Note: you must call +Fl_Window::show(argc, argv) for the icon to be used. The +Fl_Window::show() method does not bind the icon to the window. +

How to Not Get a MSDOS Console Window

WIN32 has a really stupid mode switch stored in the executables that controls whether or not to make a console window. @@ -360,4 +373,4 @@ feature, not a bug.

SetCapture (used by Fl::grab()) doesn't work, and the main window title bar turns gray while menus are popped up.

FLUID does not support BMP files yet.

- \ No newline at end of file + -- cgit v1.2.3