summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2000-05-16Dropped extra #include <stdio.h> that wasn't needed.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1125 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-05-13Added Fl::first_window(window) to change which window is at the top ofBill Spitzak
the window list. This window is used as the "parent" of any modal windows you create so it is a good idea to be able to change it. Normally it is whatever window got the last event. Fixed Fl_Menu::global handler to use first_window so if a modal window pops up in response it is parented to the window containing the menubar rather than the current top window. This was an annoying bug! Copied fl_line_style() and the line_style demo over from fltk 2.0 because I am tired of mailing this code to people. Better to advertise this as "added fl_line_style() function to set line thickness, dash patterns, and end caps". Fixed the documentation for these changes. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1117 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-05-11Fl::wait() does not return immediately when no windowsBill Spitzak
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1114 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-05-10XForms-compatable shortcut strings modified so that "0xabcd" can specifyBill Spitzak
an arbitrary key by hex code. Lame but needed for some DD software... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1113 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-27This commit was manufactured by cvs2svn to create branch 'branch-1.0'.No Author
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1099 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-25Updated copyright notices for all of the 1.0.x files.Michael R Sweet
Updated the configure script for *BSD and GCC 2.95 (-fno-exceptions) Added install rule to documentation directory. Dumped old packages directory; added traditional RPM spec file and EPM list file (that replace all of the packages stuff) The FLUID man page is now "fluid.1" for the formatted page and "fluid.man" for the non-formatted page, since only IRIX uses pack'd formatted man pages. Whew! git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1090 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-25Fixed definition of glutBitmapWidth to match header file.Bill Spitzak
Does not turn visible() on when a window is iconized() or if a modal window is shown and it's parent is iconized. This allows the code "while (w->visible() && w->damage()) Fl::check();" to reliably wait for the window to be mapped and drawn the first time. Some comments added to Fl_win32.cxx to explain how the WM_PAINT works. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1085 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-17Setting box(FL_NO_BOX) on a button makes it an invisible overlayBill Spitzak
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1075 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-14Some more size adjustments so smaller fonts look betterBill Spitzak
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1068 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-12Some adjustments so setting FL_NORMAL_SIZE to 12 looks betterBill Spitzak
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1065 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-11I made FL_NORMAL_SIZE into a public int variable. You can now change itBill Spitzak
before any widgets are created, in order to change the default size of the fonts used. The most useful thing that can be done is to set it to 12 so that the default font size matches Win32. I also fixed the menubar drawing a bit so that a menubar with a FL_FLAT_BOX draws correctly. It should also be documented that "Fl::set_color(Fl_Color(15),0,0,128);" can be used to get Win32-style highlighting of menus and text items. This is not portable to fltk 2.0. With these changes it should be easier to get fltk to look just like Win32. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1062 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-07More fixes to the NT OpenGL overlaysBill Spitzak
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1058 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-04Fixes for Cygwin POSIX emulation layer from Norman Vine.Bill Spitzak
Requires the symbol __CYGWIN__ to be defined, appears to disable the special meaning of backslash and colon in file names. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1056 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-04Fl_Value_Input callback can call value() or destructor on the Fl_Value_InputBill Spitzak
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1055 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-28Yet another cut/paste fix for NTBill Spitzak
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1053 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-24Removed more testing code from Fl_Gl_OverlayBill Spitzak
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1051 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-24Removed debug printfs from overlay codeBill Spitzak
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1050 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-24OpenGL overlays now work on NT. Tested on several different cards.Bill Spitzak
They work best on 8-bit overlays like the SGI 320 has. On cards with fewer bits you get only a few colors, really only FL_BLACK, FL_RED, and FL_WHITE are guaranteed to work. This could be improved but would mean copying the ugly X colormap allocation code. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1048 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-18OpenGL overlays now work on NT!Bill Spitzak
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1044 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-17Fixed up the colors the browser draws when it is deactivated, it does notBill Spitzak
change the background color, this fixes Jeff Meininger's demo. Fl_Input allows ^I, ^J, ^L, and ^M to be typed as control characters and inserted. If you type ^H or ^? they act like backspace and delete. Clicking on an input field no longer selects the whole thing, it inserts the cursor. My tests of Win32 to see what they did were wrong, this is a better simulation and more user friendly, too. Fixed divide-by-zer in the slider code? Better osf code for filename_list from Alexander Mai git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1042 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-15Always draw a box around the current browser selection.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1040 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-08Fix to compile on GCC 2.95.Carl E. Thompson
Carl git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1037 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-05Moved FL_LEFT_MOUSE, FL_MIDDLE_MOUSE, and FL_RIGHT_MOUSE from forms.h toBill Spitzak
Enumerations.H so they are available to any fltk programs. More fixes to the fake-overlay code in Fl_Gl_Window (it did not work on Win32 when there were 2 different-sized windows) Fix to Fl_compose to not quote the Delete key fixed to allow the right- control key to still be the compose prefix and to allow it to quote control characters. OSF1 used the same parameters for scandir as SGI and unlike Linux and apparently most other Unix's fl_ask, message, etc windows are resizable, which is useful if you use them to display arbitrary output from a program. On Win32 non_modal (but not modal) windows have close and size boxes, as per popular demand at Digital Domain. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1028 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-02Fl_Button and friends didn't honor FL_WHEN_NOT_CHANGED.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1020 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-29Fl::compose() wasn't ignoring control chars (like Delete :)Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1018 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-25Updated version to 1.0.8.Michael R Sweet
Applied colors patch. Updated doco makefile for current version of HTMLDOC. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1015 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-23New X function: fl_open_display(Display*) lets you run fltk on anBill Spitzak
already-created X connection. This should help with interoperability with Xt or other toolkits. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1013 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-23fl_shortcut_label() on Win32 prints the same strings for function keysBill Spitzak
like "Delete" and the arrows as it does on X (at least for all the common keyboard keys). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1011 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-22Fixed the changes I made yesterday so that int/float input fields do notBill Spitzak
eat Alt+letter key combinations. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1009 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-21Rearranged the compose code so it is clearer and can be called by thingsBill Spitzak
other than the Fl_Input widget. It now understands "dead keys" on X. Calling fl_set_fonts repeatedly returns the same set of fonts each time, rather than adding copies of all the fonts to the set each time. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1007 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-18Fixed the Ctrl+P shortcut problem reported by dalitz@infotech.deBill Spitzak
The previous keystroke is not confused with a navigation control key when the window focus changes. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1003 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-15Tiny change to Fl.H to get around bug in new gcc versions?Bill Spitzak
Change to code to try alternative cases of shortcuts suggested by Yaroslav Volovich. It should now work for foreign letters. However I was unable to get it to do anything no matter how I set the locale. It may be better to fix this by hardcoding in the iso-8859-1 character set and not use ctype at all, "locale" is a horrid travestry anyway and has done more to *prevent* internationalization than to help it by making it virtually impossible to test foreign components. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1001 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-05Fixed cut/paste to other applications on Win32?Bill Spitzak
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@998 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-043rd and deeper nested Fl_Windows on Win32 redraw correctly.Bill Spitzak
The symbol "table" from fl_cursor.cxx is no longer public git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@997 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-01-27Oops, the change to filename_list broke Irix, which defined the scandirBill Spitzak
in the original way. I hope this fix was not a mistake, not sure how many different systems need it each way, but I was trying to make the most common case the default. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@996 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-01-26Sets the "input hint" which is needed for TWM and TWM-derived window managers.Bill Spitzak
The #if's in filename_list.cxx have been rearranged so the most common case is the default. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@995 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-01-23If compiled with USE_COLORMAP=0 it will always try to find a TrueColorBill Spitzak
visual on the X display, rather than failing if the default is not TrueColor. This does not affect any normal compilation because USE_COLORMAP is defaulted to 1. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@993 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-01-23*** empty log message ***Bill Spitzak
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@991 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-01-20Pageup/down by correct amount in scrollbarBill Spitzak
Handles minimum size of slider in scrollbar when deciding whether to page up/dwon. Code from Matt Morrise so that shift+click extends the selection in the browser (ctrl+click remains for toggling the current item). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@990 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-01-17Fixed divide by zero in Fl_Scrollbar found by Harm-Jan Zwinderman. ThisBill Spitzak
happened if minimum == maximum. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@987 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-01-16Buttons on scrollbars draw pushed in (fix from barrero@irit.fr)Bill Spitzak
Fl_Menu_::remove(int i) will remove an entire submenu if i is the index of the menu title. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@985 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-01-12Fixed the gl_overlay demo (and gl overlays in general) when they areBill Spitzak
faked with no hardware and the window is resized. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@984 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-01-11Fixed background (@B) option - was drawing background for selected items.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@982 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-01-11Programs can now resize() their windows even if they are not resizable()Bill Spitzak
on X (this already worked on Win32). Changed the resize demo program to test this. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@981 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-01-05Added Fl.H required by an inline function if Fl_Repeat_Button.HBill Spitzak
Fl_add_idle adds new functions to the end of the queue ring, rather than the start, so they are executed in the order added, and a callback that adds itself does not prevent others from being called. Fluid lets you type in code that starts with '#' for cpp directives. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@969 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-12-31Fixed async selection code - wasn't calling TranslateMessage...Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@967 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-12-30Re-integrated all of the old WIN32 select() code just in case it is neededMichael R Sweet
(undefine USE_ASYNC_SELECT to use the old code) XBell() might be called before fl_display is initialized. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@966 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-12-29New WSAAsyncSelect code for WIN32 Fl::add_fd() support.Michael R Sweet
Fixes for Fl_Scrollbar - pushed_ bits wrong... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@965 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-12-19Stuff that didn't get into 1.0.7:Bill Spitzak
Fix for Borland or other platforms where GLint != int. Fixed browser scrollbars so they work if browser is inside a scroll (it did not update their position to match where they were drawn) Fl_Output (and non-focused Fl_Input) now scroll in response to position() calls from the program to show the position. In addition I cleaned up the horizontal scrolling of Fl_Input to be less screwy, it now never scrolls if the text actually fits in the widget. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@959 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-12-15Fixed bug on Win32 where programs would stop paying attention to keys.Bill Spitzak
What actually happens is that GetKeyState() returns garbage for the "windoze" keys if you hit them to pop up the start menu. It now calls GetAsyncKeyState(), which works. Also this version calls TranslateEvent on all events before calling DispatchEvent(), which is apparently what Win32 expects. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@948 ea41ed52-d2ee-0310-a9c1-e6b18d33e121