Commit Graph

1635 Commits

Author SHA1 Message Date
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