Commit Graph

3315 Commits

Author SHA1 Message Date
Bill Spitzak
8be248edbc check() calls flush() after processing events, as requested. This should
make no differece and is I think a safe change for 1.0 and we want this
behavior to be consistent for later versions.


git-svn-id: file:///fltk/svn/fltk/trunk@372 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-05 05:52:42 +00:00
Michael R Sweet
9fdae51b8c Added #define for WM_SYNCPAINT if needed.
WM_NCPAINT doesn't do the trick - need to use WM_SYNCPAINT...


git-svn-id: file:///fltk/svn/fltk/trunk@370 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-04 21:20:55 +00:00
Michael R Sweet
acd6cece37 Fixed WM_SYNCPAINT patch - should be WM_NCPAINT...
git-svn-id: file:///fltk/svn/fltk/trunk@366 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-04 19:01:48 +00:00
Michael R Sweet
75964566a2 Added memset() to Fl_Menu_::insert() after allocating and copying the
old menu data - otherwise new menu items could contain junk.


git-svn-id: file:///fltk/svn/fltk/trunk@364 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-04 18:43:04 +00:00
Michael R Sweet
e9dd6127e2 WIN32 fixes from Dmitry Potapov:
- Added WM_SYNCPAINT message support to get rid of redraw bugs.
    - Changed extra LineTo's to SetPixel's and associated fixes so
      that lines are drawn consistently between X and WIN32.


git-svn-id: file:///fltk/svn/fltk/trunk@363 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-04 18:32:14 +00:00
Michael R Sweet
e3eaeb0f5c Put fl_elapsed() call before loop in Fl::add_timeout().
git-svn-id: file:///fltk/svn/fltk/trunk@362 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-04 18:24:44 +00:00
Michael R Sweet
516ed80d97 Added "buffer=0" in constructor to avoid purify errors.
git-svn-id: file:///fltk/svn/fltk/trunk@359 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-04 18:09:18 +00:00
Michael R Sweet
20cba9fc64 Fixed menubar button bug - wasn't doing a redraw...
git-svn-id: file:///fltk/svn/fltk/trunk@358 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-04 17:36:08 +00:00
Michael R Sweet
681ff11d8e Updated DSO install commands - now remove the symlink before remaking it.
git-svn-id: file:///fltk/svn/fltk/trunk@356 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-04 14:54:18 +00:00
Bill Spitzak
c599778795 Fix for browser horizontally scrolling.
This produces some odd (but maybe not broken) behavior for centered and
right-justified lines, so maybe it is not such a great fix.


git-svn-id: file:///fltk/svn/fltk/trunk@353 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-04 07:34:04 +00:00
Bill Spitzak
b32f322c12 Much better and smaller fix for the lost move events after Fl::grab()
git-svn-id: file:///fltk/svn/fltk/trunk@352 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-03 07:47:22 +00:00
Bill Spitzak
fe4f5ef72c Generates FL_ENTER after grab() is released for whatever widget the
mouse is over.


git-svn-id: file:///fltk/svn/fltk/trunk@351 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-03 07:40:18 +00:00
Bill Spitzak
b47973f560 Patch from Dr. Tom Holroyd for fill sliders, seems good to me!
git-svn-id: file:///fltk/svn/fltk/trunk@350 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-03 07:21:28 +00:00
Bill Spitzak
4df7511b18 Didn't like yesterday's fix, I changed it so that zero-length selections
are allowed.  Warning: untested on WIN32 (although it seems likely that
it will work).


git-svn-id: file:///fltk/svn/fltk/trunk@349 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-02 07:03:15 +00:00
Bill Spitzak
32291ad0d5 Made secret input more secretive (word-select does not work and
it sets X selection to '*' instead of leaving it unchanged)


git-svn-id: file:///fltk/svn/fltk/trunk@348 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-01 03:44:30 +00:00
Bill Spitzak
f19b6ee3e4 Fixed editor demo redraw bug (actually same fix as somebody else made).
Highlight is cleared if any other widget makes an X selection.


git-svn-id: file:///fltk/svn/fltk/trunk@345 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-26 07:07:56 +00:00
Carl E. Thompson
bdbc0b8b2e Fix for redraw bug in editor demo. Fl_Input_::position() didn't seem to
want to properly update the position if the input didn't have the focus.
This works, but I'm not sure if this is the most efficient solution.  Could
someone who really understands the position() and minimal_update() routines
double-check this?

-Carl


git-svn-id: file:///fltk/svn/fltk/trunk@344 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-25 22:34:12 +00:00
Bill Spitzak
f89b5d0cf6 Fixed glpuzzle so you can move the pieces.
Added commented-out line to fl_input that could maybe fix highlight confusion


git-svn-id: file:///fltk/svn/fltk/trunk@343 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-25 20:05:30 +00:00
Bill Spitzak
82877b2eb6 Fix for Curtis so that the height of a title of a popup menu is not
affected by the height of the Fl_Menu_Button.


git-svn-id: file:///fltk/svn/fltk/trunk@340 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-25 19:09:11 +00:00
Michael R Sweet
209f38157b Added shell commands to create symbolic links for all .H header files in
the FL directory.  This allows any combination of Fl/FL and .H/.h.


git-svn-id: file:///fltk/svn/fltk/trunk@332 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-23 15:37:19 +00:00
Michael R Sweet
39b84309f0 Fix from Bill - Fl_Choice didn't handle NULL menu items.
git-svn-id: file:///fltk/svn/fltk/trunk@329 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-23 14:01:17 +00:00
Michael R Sweet
6139e446a6 Removed old fl_draw_returnarrow() code that wasn't getting used.
git-svn-id: file:///fltk/svn/fltk/trunk@325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-22 22:09:17 +00:00
Michael R Sweet
f32ecc47ba fl_elapsed() needs to be called before fl_timeout[] is initialized.
git-svn-id: file:///fltk/svn/fltk/trunk@319 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-22 21:19:19 +00:00
Michael R Sweet
767cad1311 Workaround for VC++ 4.0 bug - can't initialize a pointer to a function
in the declaration...


git-svn-id: file:///fltk/svn/fltk/trunk@315 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-22 21:01:59 +00:00
Michael R Sweet
28d2778032 Added missing Fl_Color casts.
git-svn-id: file:///fltk/svn/fltk/trunk@314 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-22 21:01:03 +00:00
Michael R Sweet
e23a5718ae Call to atan2() needs (float) cast for arguments because HP overloads
atan2() [isn't that a violation of ANSI C/C++???]


git-svn-id: file:///fltk/svn/fltk/trunk@313 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-22 20:58:23 +00:00
Michael R Sweet
63c0b655bb Updated ifdef to be __hpux instead of hpux...
git-svn-id: file:///fltk/svn/fltk/trunk@312 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-22 20:54:44 +00:00
Michael R Sweet
74ea22b252 Added ln -s for DSOs - must have gotten dropped in a previous update?
git-svn-id: file:///fltk/svn/fltk/trunk@310 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-22 18:05:20 +00:00
Michael R Sweet
1a135b0424 Updated Fl::x(), ::y(), ::w(), and ::h() to account for WIN32 trays.
Updated menu code to account for tray locations.


git-svn-id: file:///fltk/svn/fltk/trunk@307 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-19 15:34:09 +00:00
Michael R Sweet
34caa8250d Added fix from Tom Holroyd to call fl_elapsed() in Fl::add_timeout().
git-svn-id: file:///fltk/svn/fltk/trunk@302 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-19 14:26:30 +00:00
Michael R Sweet
ae5a281a39 Updated install rules to install files with write permission for the
owner.  This isn't necessary for root installs, but is for user-level
installs.


git-svn-id: file:///fltk/svn/fltk/trunk@298 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-19 13:10:20 +00:00
Michael R Sweet
8136dfe6b5 Patch from Alexander Mai - Linux needs prototype hack just like AIX and
Unicos.


git-svn-id: file:///fltk/svn/fltk/trunk@297 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-19 13:07:40 +00:00
Michael R Sweet
bf870685d4 Removed extra "events" target from enumerations.html.
Added missing #include <FL/Enumerations.H> to Fl_XColor.H.


git-svn-id: file:///fltk/svn/fltk/trunk@279 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-16 22:27:52 +00:00
Michael R Sweet
ca41e69c27 Updated headers to support WIN32 and OS/2 DLLs.
Updated VC++ project files.

Removed dummymain.c (no longer needed).


git-svn-id: file:///fltk/svn/fltk/trunk@278 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-16 22:00:04 +00:00
Michael R Sweet
18312d3c1f Updated Fl_Dial to use atan2() to avoid possible math errors and reduce
code size.


git-svn-id: file:///fltk/svn/fltk/trunk@277 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-16 17:23:55 +00:00
Michael R Sweet
7b82bc3509 Patch from Bill - not freeing bitmap array?
git-svn-id: file:///fltk/svn/fltk/trunk@276 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-16 15:10:53 +00:00
Michael R Sweet
d59ce3cc34 Removed fl_line_style.cxx from makefile...
git-svn-id: file:///fltk/svn/fltk/trunk@274 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-16 14:01:46 +00:00
Michael R Sweet
3204e098af Patch from Jim Hourihan that adds symbol support to Fl_Choice.
git-svn-id: file:///fltk/svn/fltk/trunk@271 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-16 13:48:04 +00:00
Bill Spitzak
8009fef12c Put Fl::grab() into it's own source file. Rewritten as suggested so that
it takes a window pointer, and grab(0) releases.  You can now call grab
repeatedly with the same or different values without it failing.  The old
Fl::grab() and Fl::release() are emulated in inline functions in Fl.H

Added Fl_Menu_::copy(Fl_Menu_Item*), which will be useful for fluid, although
that use is nyi.

Fixes and cleanup to the code for Fl_Menu_::add(...).


git-svn-id: file:///fltk/svn/fltk/trunk@268 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-03 08:43:35 +00:00
Michael R Sweet
0434a826d5 Fl_abort.cxx didn't include <config.h>, and didn't conditionally declare
a prototype for vsnprintf().  This caused problems with CodeWarrier.


git-svn-id: file:///fltk/svn/fltk/trunk@267 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-02 14:55:59 +00:00
Michael R Sweet
45950c18df OS/2 XFree86 changes from Alexander Mai.
git-svn-id: file:///fltk/svn/fltk/trunk@264 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-01 20:27:16 +00:00
Michael R Sweet
6882323172 Updated Fl_Chart to allocate entries dynamically. The previous "scrolling"
behavior can be restored by calling Fl_Chart::maxsize(), otherwise entries
can be added until you run out of memory.


git-svn-id: file:///fltk/svn/fltk/trunk@262 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-01 20:15:00 +00:00
Michael R Sweet
0e4b539ae3 Fixed fl_line() bugs in for WIN32 - the documentation says
that the LineTo() function will draw up to but not including
the end point.  "It's a feature!"


git-svn-id: file:///fltk/svn/fltk/trunk@260 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-01 01:59:13 +00:00
Bill Spitzak
4c53a5d8f4 Added optimization for SGI builds (mike: please run autoconf before making
a distribution).
Documentation fixes.


git-svn-id: file:///fltk/svn/fltk/trunk@259 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-31 07:43:16 +00:00
Carl E. Thompson
620d03ee7d Adds Fl_Browser::middleline(int) and Fl_Browser::bottomline(int).
git-svn-id: file:///fltk/svn/fltk/trunk@257 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-30 00:39:28 +00:00
Carl E. Thompson
03ad382705 Moved fl_old_shortcut() from Fl_Menu_add.cxx to Fl.cxx so that using a
button in your program doesn't automatically link in a humumgous chunk of
menuing code.

-CET


git-svn-id: file:///fltk/svn/fltk/trunk@256 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-29 16:56:48 +00:00
Bill Spitzak
ef50e095e7 Fixed buttons in the menubar
git-svn-id: file:///fltk/svn/fltk/trunk@255 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-29 07:52:21 +00:00
Michael R Sweet
41195fbba6 Updated to include <sys/select.h> as needed.
Removed IRIX select() prototype - not needed for IRIX 5.3 or higher.


git-svn-id: file:///fltk/svn/fltk/trunk@254 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-27 17:52:25 +00:00
Michael R Sweet
e8b804cade Updated Makefile for shared libraries (wasn't copying both files).
Added symlink for FL->Fl mapping under UNIX.


git-svn-id: file:///fltk/svn/fltk/trunk@251 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-27 14:44:32 +00:00
Bill Spitzak
59c96f5463 Fixes to documentation.
Restored the lines drawn around symbols, it uses fl_color_average to
pick a dark line color that is still deactivatable.  Requested by CE.


git-svn-id: file:///fltk/svn/fltk/trunk@249 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-27 08:45:11 +00:00
Michael R Sweet
53d39cc6c0 Applied a navigation bug fix from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@245 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-26 21:37:14 +00:00
Michael R Sweet
81eb3115e0 Patch from Carl - inactive and contrast functions.
git-svn-id: file:///fltk/svn/fltk/trunk@241 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-25 20:43:05 +00:00
Michael R Sweet
5b62a7cf16 Patch from Bill so that non_modal windows can be maximized or iconified.
git-svn-id: file:///fltk/svn/fltk/trunk@240 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-24 15:30:32 +00:00
Michael R Sweet
a2a0be6e1c Patch from Bill so that Shift-Tab works on all systems.
git-svn-id: file:///fltk/svn/fltk/trunk@239 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-24 15:28:59 +00:00
Michael R Sweet
ec2a5e3a19 Patch from Bill to allow users to click outside a menu to hide it without
making a selection.


git-svn-id: file:///fltk/svn/fltk/trunk@238 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-24 15:27:35 +00:00
Michael R Sweet
eb6835a862 Fixed drawing of return button.
git-svn-id: file:///fltk/svn/fltk/trunk@235 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-19 19:26:46 +00:00
Michael R Sweet
6d87533f19 Fixes from Bill for menu scrolling errors.
git-svn-id: file:///fltk/svn/fltk/trunk@233 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-19 19:12:51 +00:00
Michael R Sweet
576f02c063 Fixes from Bill:
- Fluid fixes for menu item numbering and adding of #define stuff to
  include file to prevent multiple inclusion.
- Fixed contrast function (again).
- Fixed fractals demo (not using glutMainLoop()...


git-svn-id: file:///fltk/svn/fltk/trunk@232 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-19 19:10:39 +00:00
Michael R Sweet
b2290975d4 Fix from Bill - global shortcuts now work for the menubar as well.
git-svn-id: file:///fltk/svn/fltk/trunk@231 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-19 19:05:39 +00:00
Michael R Sweet
2832714d4c Fix from Bill - removed code that was sending extra events.
git-svn-id: file:///fltk/svn/fltk/trunk@230 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-19 19:04:30 +00:00
Michael R Sweet
046456bb0d Fixed missing include file (<sys/time.h>)
git-svn-id: file:///fltk/svn/fltk/trunk@222 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-13 19:43:13 +00:00
Michael R Sweet
0cad30ec73 Didn't need to define a replacement for getcwd() under Windows...
git-svn-id: file:///fltk/svn/fltk/trunk@217 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-13 16:56:05 +00:00
Michael R Sweet
1341e2a429 Fl_Clock fixes for WIN32 from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@215 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-13 15:58:33 +00:00
Michael R Sweet
c31a0f7dee More color fixes from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@214 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-13 15:57:38 +00:00
Michael R Sweet
500be2e8aa More color fixes from Bill - contrast function not right, and moved
fl_color_average() to be a non-public method.


git-svn-id: file:///fltk/svn/fltk/trunk@213 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-13 15:56:23 +00:00
Michael R Sweet
8327071ab0 Fixes from Bill:
- Fixed redraw bug in fl_color_chooser().
    - Fl_Value_Input will now accept hexadecimal numbers.


git-svn-id: file:///fltk/svn/fltk/trunk@210 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-13 15:47:27 +00:00
Michael R Sweet
ab5771b62f Fixes from Bill:
- Fl_Clock now uses the Fl_Clock_Output base class to get the
      system time.
    - Fl_Window::iconize() and Fl_Window::icon() now coexist
      peacefully with all X window managers.
    - Minor fixes to mandelbrot and shape demos.
    - Menu code cleanup.


git-svn-id: file:///fltk/svn/fltk/trunk@209 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-13 15:45:50 +00:00
Michael R Sweet
27b2249266 Updated file chooser and matching from Bill (better for WIN32).
git-svn-id: file:///fltk/svn/fltk/trunk@205 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-07 21:22:28 +00:00
Michael R Sweet
0a36d98420 Yay, change all copyright notices to be 1998-1999.
git-svn-id: file:///fltk/svn/fltk/trunk@201 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-07 19:18:01 +00:00
Michael R Sweet
18fa377d51 Fixed FD stuff for WIN32.
git-svn-id: file:///fltk/svn/fltk/trunk@194 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-07 17:20:03 +00:00
Michael R Sweet
975612bbe3 Removed old inactive function.
git-svn-id: file:///fltk/svn/fltk/trunk@192 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-07 16:57:39 +00:00
Michael R Sweet
42aab2a991 More double-buffering and region code stuff from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@191 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-07 16:47:41 +00:00
Michael R Sweet
680bdba2dd Double-buffered window speedup from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@190 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-07 16:47:15 +00:00
Michael R Sweet
123f28a473 modal() window fix from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@189 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-07 16:43:04 +00:00
Michael R Sweet
651b2af829 More contrast updates from Carl.
git-svn-id: file:///fltk/svn/fltk/trunk@188 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-07 16:40:58 +00:00
Michael R Sweet
85e6f44959 Added support for FD's under WIN32.
git-svn-id: file:///fltk/svn/fltk/trunk@186 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-06 21:20:01 +00:00
Michael R Sweet
41d027ebfb Fix from Carl - the inactive() function now works with all colors, and
all widgets now use it.


git-svn-id: file:///fltk/svn/fltk/trunk@185 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-05 17:57:49 +00:00
Michael R Sweet
131b567003 Patch from Bill to improve contrast of menu items as needed.
git-svn-id: file:///fltk/svn/fltk/trunk@184 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-05 17:53:00 +00:00
Michael R Sweet
65d091e11b Word wrap update from Bill...
git-svn-id: file:///fltk/svn/fltk/trunk@183 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-04 19:29:10 +00:00
Michael R Sweet
f7ec07d6ef Fix from Bill to prevent popup menus from generating unknown events.
git-svn-id: file:///fltk/svn/fltk/trunk@181 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-04 19:27:00 +00:00
Michael R Sweet
b95db33f2c Lots of changes:
- Added #defines for Visual C++ to speed up compiles.
    - Added FLTK.DLL project to visualc directory.
    - Added editor project to visualc directory.
    - Added icon() method to Fl_Window class.
    - Implemented xclass() method for WIN32.
    - Fixed extern declaration of fl_send_extra_move in Fl_Menu_Window.cxx.
    - scandir_win32.c needed to include <stdlib.h>.
    - Added fix from Bill for fl_width() bug.
    - Updated fix for Fl_Input to default to FL_DOWN_BOX.
    - Added visible() check for children of Fl_Pack.
    - Added WinMain() function to library.
    - Now show console window in debug mode.
    - Fixed demo.menu and demo.cxx to work under WIN32.


git-svn-id: file:///fltk/svn/fltk/trunk@180 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-04 19:25:40 +00:00
Michael R Sweet
d7e327acb6 Fl_Input didn't handle box type of FL_NO_BOX properly.
(patch from Curtis)


git-svn-id: file:///fltk/svn/fltk/trunk@178 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-29 14:30:23 +00:00
Michael R Sweet
0c2f043ea0 Patch to Bill's patch.
git-svn-id: file:///fltk/svn/fltk/trunk@175 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-29 14:08:07 +00:00
Michael R Sweet
3b1a191025 More subwindow event handling fixes.
git-svn-id: file:///fltk/svn/fltk/trunk@174 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-29 14:07:14 +00:00
Michael R Sweet
0aa5899fbe Patch from Bill - removes dead code.
git-svn-id: file:///fltk/svn/fltk/trunk@173 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-29 14:06:08 +00:00
Michael R Sweet
f17882c5cb Fixed the Fl_Input selection color when the user specifies a foreground or
background color on the command-line (patch from Bill).


git-svn-id: file:///fltk/svn/fltk/trunk@172 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-29 14:05:13 +00:00
Michael R Sweet
434609ab0c Fixed event propragation for subwindows (from Bill).
git-svn-id: file:///fltk/svn/fltk/trunk@171 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-29 14:01:46 +00:00
Michael R Sweet
a35b7387f5 Fixed Fl_Group::add()...
git-svn-id: file:///fltk/svn/fltk/trunk@170 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-29 13:59:48 +00:00
Michael R Sweet
2454e52dd4 Static pointer variable was not initialized to NULL.
git-svn-id: file:///fltk/svn/fltk/trunk@166 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-21 13:54:02 +00:00
Michael R Sweet
47e5607d87 Fixed merged Fl.cxx code.
git-svn-id: file:///fltk/svn/fltk/trunk@164 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-15 16:24:37 +00:00
Michael R Sweet
82d46419ba Fixes for transparent Pixmaps under WIN32 from Matt.
git-svn-id: file:///fltk/svn/fltk/trunk@162 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-15 15:42:35 +00:00
Michael R Sweet
30800cc268 Merged damage changes into Fl.cxx.
git-svn-id: file:///fltk/svn/fltk/trunk@161 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-15 15:40:30 +00:00
Michael R Sweet
98b5324977 More focus fixes from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@160 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-15 15:38:16 +00:00
Michael R Sweet
136a364054 Focus fixes from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@159 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-15 15:35:19 +00:00
Michael R Sweet
4f9aa69ea4 Event processing fixes from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@158 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-15 15:34:36 +00:00
Michael R Sweet
0da3a12e6c Updated scandir and pen stuff, plus got rid of ODBC libraries from
project files.


git-svn-id: file:///fltk/svn/fltk/trunk@157 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-08 22:08:01 +00:00
Michael R Sweet
f42673addc Damage code consolidation from Gustavo...
git-svn-id: file:///fltk/svn/fltk/trunk@154 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-08 21:08:51 +00:00
Michael R Sweet
d3fb66b4dd OpenGL patches from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@152 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-08 21:04:40 +00:00
Michael R Sweet
eadb00f1aa Got rid of FL/filename.H dependency.
Renamed back to scandir_win32.c...


git-svn-id: file:///fltk/svn/fltk/trunk@150 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-08 21:00:18 +00:00
Michael R Sweet
5446248b38 Added cast to comparison function.
git-svn-id: file:///fltk/svn/fltk/trunk@143 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-07 13:43:37 +00:00
Michael R Sweet
12e7a1cda4 Redraw speedup patch from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@141 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-07 13:38:40 +00:00
Michael R Sweet
eb9fdfb01f Changed #include "*.C" to "*.cxx"...
git-svn-id: file:///fltk/svn/fltk/trunk@140 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-07 13:36:26 +00:00
Michael R Sweet
ddc55fd591 Pointer motion compression patch from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@139 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-07 13:34:27 +00:00
Michael R Sweet
b9cb06b5a6 Makefile didn't define .cxx extension...
git-svn-id: file:///fltk/svn/fltk/trunk@133 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-06 15:19:37 +00:00
Michael R Sweet
29b31b7013 Added support for transparent pixmaps in WIN32...
git-svn-id: file:///fltk/svn/fltk/trunk@130 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-06 15:12:23 +00:00
Michael R Sweet
16252e5faf Changes for .C == .cxx and .H == .h.
git-svn-id: file:///fltk/svn/fltk/trunk@128 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-06 14:59:14 +00:00
Michael R Sweet
d4b8c831c1 Updated visual checking code to ignore DirectColor visuals.
git-svn-id: file:///fltk/svn/fltk/trunk@126 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-06 14:44:00 +00:00
Michael R Sweet
5fea9312ad One last Pixmap fix from Matthias.
git-svn-id: file:///fltk/svn/fltk/trunk@125 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-03 13:28:21 +00:00
Michael R Sweet
be689f989a Fixed OpenGL text drawing...
git-svn-id: file:///fltk/svn/fltk/trunk@124 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-02 21:15:19 +00:00
Michael R Sweet
8970b5da2d More fixes for inactive drawing.
No more black box around symbols...


git-svn-id: file:///fltk/svn/fltk/trunk@122 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-02 18:55:58 +00:00
Michael R Sweet
9c208650bf Fixed inactive drawing code...
git-svn-id: file:///fltk/svn/fltk/trunk@121 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-02 18:43:28 +00:00
Michael R Sweet
aadcb29e90 Menu update from Bill - dynamic allocation of items...
git-svn-id: file:///fltk/svn/fltk/trunk@116 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-02 16:15:12 +00:00
Michael R Sweet
892664ca26 WIN32 RGB color fixes from Vincent.
git-svn-id: file:///fltk/svn/fltk/trunk@115 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-02 16:04:03 +00:00
Michael R Sweet
e467c3e8a9 From Bill:
The attached patch rearranges things so the function
Fl::get_system_colors
parses the switches passed by -fg, -bg, or -bg2.  This allows you to
interpret these switches without using Fl_Window::show(argc,argv), which
is inconvenent for a program that displays many windows, none of which
are the "main" window.


git-svn-id: file:///fltk/svn/fltk/trunk@114 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-02 16:00:48 +00:00
Michael R Sweet
00422021c1 More font magic from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@111 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-02 15:53:22 +00:00
Michael R Sweet
beb210d4d4 Font changes from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@109 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-02 15:51:38 +00:00
Michael R Sweet
c061230dc7 Fl_Browser fixes from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@108 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-02 15:48:43 +00:00
Michael R Sweet
92402e682a Fix for numericsort(), and drawing of some box types.
git-svn-id: file:///fltk/svn/fltk/trunk@107 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-02 15:47:30 +00:00
Michael R Sweet
849e11623e Changes from Carl to get rid of default_ variables...
git-svn-id: file:///fltk/svn/fltk/trunk@106 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-02 15:39:39 +00:00
Michael R Sweet
90a6a06b7f Added floating point versions of gl_draw() functions.
git-svn-id: file:///fltk/svn/fltk/trunk@100 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-24 13:18:34 +00:00
Michael R Sweet
fa39ee278f Changed pixel format stuff for Windows - request a minimum size of 8 bits
RGB, and added depth buffer support.


git-svn-id: file:///fltk/svn/fltk/trunk@98 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-20 20:00:29 +00:00
Michael R Sweet
7f473a1349 File chooser redraw bug fix from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@94 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-18 18:39:13 +00:00
Michael R Sweet
a470744d8c Fl_Scroll fix from Bill Spitzak.
git-svn-id: file:///fltk/svn/fltk/trunk@93 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-18 18:38:32 +00:00
Michael R Sweet
c34eeb0d55 Fixed slider drawing bug.
git-svn-id: file:///fltk/svn/fltk/trunk@92 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-18 18:01:21 +00:00
Michael R Sweet
402527311e The slider was not drawing the bar inactive.
git-svn-id: file:///fltk/svn/fltk/trunk@91 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-18 17:26:44 +00:00
Michael R Sweet
5098fc05af Fix from Adrian Miranda - using memcpy() with overlapping buffers; changed
to memmove()...


git-svn-id: file:///fltk/svn/fltk/trunk@90 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-17 18:43:24 +00:00
Michael R Sweet
35bc9f0bc5 Fix from Paul Sydney - missing #include <config.h> in fl_ask.C...
git-svn-id: file:///fltk/svn/fltk/trunk@87 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-12 14:16:57 +00:00
Michael R Sweet
12ce7cba98 Window position bug fix from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@86 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-12 14:14:57 +00:00
Michael R Sweet
3ad63de2bf Fl_Input patch from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@83 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-10 14:40:56 +00:00
Michael R Sweet
a7dbe1ff3d Menu patches from Bill...
git-svn-id: file:///fltk/svn/fltk/trunk@82 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-10 14:40:18 +00:00
Michael R Sweet
bb21ad7270 Fixed sort function - was returning numbers other than 1, -1, and 0, and
didn't correctly sort numbers.


git-svn-id: file:///fltk/svn/fltk/trunk@81 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-09 16:25:59 +00:00
Michael R Sweet
a8f049239c Whoops - put WIN32 stuff in with the X stuff...
git-svn-id: file:///fltk/svn/fltk/trunk@78 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-09 13:53:38 +00:00
Michael R Sweet
2b769f5934 Backed out WIN32 color palette changes for OpenGL - caused too much
flashing...


git-svn-id: file:///fltk/svn/fltk/trunk@76 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-08 17:02:40 +00:00
Michael R Sweet
e278c332b3 Fixed WIN32 bug - FL_GL_WINDOW needs to be defined in Fl_Window.H...
git-svn-id: file:///fltk/svn/fltk/trunk@75 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-08 16:47:44 +00:00
Michael R Sweet
dfa8c05620 More OpenGL under Windows changes - now keep track of window type and
select the corresponding color palette...


git-svn-id: file:///fltk/svn/fltk/trunk@74 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-08 16:37:21 +00:00
Michael R Sweet
32d18a3591 Added 8-bit palette for OpenGL (3:3:2 RGB). This should fix all of the
OpenGL colormap problems...


git-svn-id: file:///fltk/svn/fltk/trunk@73 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-08 15:55:23 +00:00
Michael R Sweet
0768612ddb HP-UX fixes.
git-svn-id: file:///fltk/svn/fltk/trunk@72 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-08 15:34:18 +00:00
Michael R Sweet
4e544943de Removed the HP-UX hack (again) for select(); it ain't needed!
git-svn-id: file:///fltk/svn/fltk/trunk@71 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-08 15:28:42 +00:00
Michael R Sweet
a90ca2d60a Patches from Bill:
- Box type problems with 2-pixel boxes (wrong colors)
  - Fl_Pixmap fix (uchar instead of char)
  - Style demo fixes for Windows.
  - HPUX comparison function prototype wrong.
  - Spelling errors...


git-svn-id: file:///fltk/svn/fltk/trunk@70 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-08 15:05:48 +00:00
Michael R Sweet
4c68a1ca54 Moved select_palette() from WM_PAINT message to make_current()...
git-svn-id: file:///fltk/svn/fltk/trunk@69 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-08 14:39:09 +00:00
Michael R Sweet
37d1178c11 WIN32 fixes from Gustavo for fullscreen mode problems.
git-svn-id: file:///fltk/svn/fltk/trunk@68 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-08 14:36:56 +00:00
Michael R Sweet
39be2233f4 Memory overflow fix from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@66 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-06 20:14:41 +00:00
Michael R Sweet
d9ddb41ac4 File chooser scrollbar redraw bug fix from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@65 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-06 16:00:45 +00:00
Michael R Sweet
dccfdf93e3 Added fl_select_palette() to the WM_PAINT processing to make 8-bit
windows draw properly under Windows.


git-svn-id: file:///fltk/svn/fltk/trunk@64 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-06 14:32:17 +00:00
Michael R Sweet
0aa463775d Updated for C++.
git-svn-id: file:///fltk/svn/fltk/trunk@61 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-05 21:40:45 +00:00
Michael R Sweet
b7b9189ee4 Updated vsnprint stuff for C++.
git-svn-id: file:///fltk/svn/fltk/trunk@60 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-05 21:25:37 +00:00
Michael R Sweet
754414ac6a It's vsnprintf(), not vnsprintf()...
git-svn-id: file:///fltk/svn/fltk/trunk@57 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-05 19:46:59 +00:00
Michael R Sweet
711c6d1c54 Added vsnprintf() emulation code.
git-svn-id: file:///fltk/svn/fltk/trunk@53 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-05 16:07:45 +00:00
Michael R Sweet
80b1529ef4 Multiple patches from Bill:
- Double-buffered window fixes.
  - Tabs fixes.
  - X/WIN32 fixes.
  - Fl_Input fixes.
  - Support for vsnprintf and friends.
  - Support for printf-style arguments in utility functions.


git-svn-id: file:///fltk/svn/fltk/trunk@52 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-05 16:04:53 +00:00
Michael R Sweet
60399e3945 Fixed install targets...
git-svn-id: file:///fltk/svn/fltk/trunk@51 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-21 22:03:53 +00:00
Michael R Sweet
1a01057394 Updated scrollbar draw code - wasn't graying out the arrow...
git-svn-id: file:///fltk/svn/fltk/trunk@41 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-21 17:53:13 +00:00
Michael R Sweet
7657a2e4a5 Fixed all the frigging file headings - was missing a $ in the Id string.
Applied some damage bit fixes from Bill Spitzak.


git-svn-id: file:///fltk/svn/fltk/trunk@28 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-21 14:21:44 +00:00
Michael R Sweet
0f60ac9155 Fixed definitions of scandir, numericsort, and alphasort (no const!)
git-svn-id: file:///fltk/svn/fltk/trunk@26 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-20 23:58:32 +00:00
Michael R Sweet
74858f12e3 Updated makefiles for new heading and new top-level makefile.
git-svn-id: file:///fltk/svn/fltk/trunk@25 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-20 21:06:19 +00:00
Michael R Sweet
90e8eb7a45 More changes from Bill Spitzak.
git-svn-id: file:///fltk/svn/fltk/trunk@20 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-19 21:00:26 +00:00
Michael R Sweet
1a86a0ede0 The great heading change - now use standard LGPL header with CVS tags.
git-svn-id: file:///fltk/svn/fltk/trunk@19 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-19 20:46:58 +00:00
Michael R Sweet
512332670a Added Gustavo's damage() update - now use symbolic constants for all values!
git-svn-id: file:///fltk/svn/fltk/trunk@18 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-19 17:53:09 +00:00
Michael R Sweet
33ee986a7b Fixed some clipping stack bugs (no range checking).
git-svn-id: file:///fltk/svn/fltk/trunk@17 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-19 17:23:47 +00:00
Michael R Sweet
f3fc32d284 Added another redraw patch from Bill Spitzak.
git-svn-id: file:///fltk/svn/fltk/trunk@16 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-19 17:16:10 +00:00
Michael R Sweet
67d2f102d9 More WIN32 fixes from Gustavo Hime.
git-svn-id: file:///fltk/svn/fltk/trunk@13 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-15 14:38:16 +00:00
Michael R Sweet
255e7fb39b Fluid fixes from Vincent PENNE.
git-svn-id: file:///fltk/svn/fltk/trunk@12 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-15 14:19:34 +00:00
Michael R Sweet
45bb73a9bf Commited WIN32 patches from Bill Spitzak and Gustavo Hime.
git-svn-id: file:///fltk/svn/fltk/trunk@11 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-15 14:06:16 +00:00
Michael R Sweet
725a11bce7 Applied patches from Bill Spitzak.
Fixed all source files with MS-DOS/Windows line termination (CR+LF) instead
of standard line termination (LF only).


git-svn-id: file:///fltk/svn/fltk/trunk@8 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-06 19:14:55 +00:00
Michael R Sweet
e7d805a88c Commited Gustavo Hime's NT patches/fixes.
git-svn-id: file:///fltk/svn/fltk/trunk@7 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-06 18:46:47 +00:00
Michael R Sweet
f9039b2ae2 Initial revision
git-svn-id: file:///fltk/svn/fltk/trunk@2 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-06 18:21:25 +00:00