Commit Graph

44 Commits

Author SHA1 Message Date
Michael R Sweet
4b341bc95a Added Rick's hack for initializing fl_display.
fl_call_main() and WinMain are now only compiled in for non-GNU compilers
under WIN32 (not needed for Cygwin and friends).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@593 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-05-24 14:03:47 +00:00
Bill Spitzak
4e66f93769 Missing header files and FL_EXTERNs that prevented DLL's from compiling
under BCC.
Fluid will output A::B::C names for nested classes.
Fl_Browser::lineposition(n, BOTTOM) will align the bottom of the line
rather than the top with the bottom of the browser.
The connect program does wait() so that it does not leave a zombie for
every one of your ppp connections.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@584 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-05-11 09:39:31 +00:00
Michael R Sweet
d4bcbf5be3 fl_wait() didn't handle the case when timeout == 0 and nfds > 0.
As a result, you had to wiggle the mouse in order for fds to be
polled on a regular basis.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@583 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-05-09 14:49:14 +00:00
Bill Spitzak
349f047032 Keypad should produce correct symbols on Brazilian (and any other)
keyboard when NumLock is on.  Also added some explanatory comments to
the source code.
Some pointers were not being turned off when widgets were deleted, this
caused flwm to crash.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@553 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-23 06:55:53 +00:00
Michael R Sweet
816393d2d4 Updated patch version to 2 (1.0.2)
Fixed missing fdsets variable in Fl_win32.cxx

Removed unused maxfd variable in Fl_win32.cxx

FLUID now outputs the window constructor with x,y arguments if
the class name is Fl_Group (this allows you to setup classes
using FLUID)  Add extra code after all the widgets to move them
to the desired offset within the window.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@548 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-18 19:17:03 +00:00
Bill Spitzak
0e29799dda Fl::add_fd() structures are dynamically allocated so you can listen to
as many connections as you want (up to the maximum number handled by
select()).

Fl::remove_fd(fd, when) added.  This allows you to remove the read,
write, and error callbacks individually.  Fl::remove_fd(fd) does
Fl::remove_fd(fd,-1).

Fl::add_fd() calls Fl::remove_fd(), so it can be used safely to
replace callbacks with new ones for the same file descriptor.

Fl::add_timeout() also dynamically allocates it's array so there is no
limit on the number of pending timeouts.

I cut/pasted the changes into the Windoze version but this is
UNTESTED!  Somebody please do a test compile.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@544 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-17 01:02:30 +00:00
Bill Spitzak
fa29bbdc0f 1. ~Fl_Widget(), Fl_Widget::hide(), and Fl_Widget::deactivate() no longer send
FL_LEAVE, FL_RELEASE, or FL_UNFOCUS events to the widget.  This seems to
be desirable behavior and fixes a crash in flwm.
2. After you show() a window, Fl::damage() should be true and remain true
until the window is actually drawn and up to date.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@530 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-10 08:09:39 +00:00
Michael R Sweet
4cb0fad70f Applied Gustavo's WIN32 timer patch to the 1.0.x branch.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@495 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-01 14:45:47 +00:00
Carl E. Thompson
81c7d9b215 Changes needed to get FLTK to compile on Borland C++ 5 under Windows. I
compiled this on BC++ 5.0 upgraded to 5.0B via the two monster patches.
I didn't turn on optimization because my version of BC++ doesn't seem to
do much in the way of optimization (FLUID was only 1k smaller when
optimized for size).  VC++ generates smaller code.

The examples that use OpenGL don't work because Borland's linker can't find
"wglShareLists".  I'm sure this is a simple problem, but I don't know how
to fix it.

Borland's C++ compiler won't allow you to call main() from C++, so I had
to add a c function in "fl_call_main.c" to call it so that you don't have
to do that WinMain crap.  However, when I added this file to the Visual C++
project it converted the whole thing from 5.0 format to 6.0 format.  The
files look the nearly identical so I don't think this should be a problem
for 5.0 users, but if it is then you can revert them back to the previous
version and just add this one source file.

Borland really doesn't suck that bad.  It doesn't look as polished as VC++
and it refused to supress some warnings for no reason, but I forgot how
much I liked the feel of Borlands compilers...  Much more intuitive then
MS VC++.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@475 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-29 17:39:46 +00:00
Michael R Sweet
5df541f4f8 Applied Dmitry's timeout patch.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@455 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-25 13:32:52 +00:00
Bill Spitzak
2eafe965c9 Changes from Luis Ibanez to make it compile under Borland.
Includes a real bug that was in Fl_Gl_Window.c (#if WIN32)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@437 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-18 20:04:13 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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