Commit Graph

38 Commits

Author SHA1 Message Date
Michael R Sweet
c5d30baf60 Documentation updates (STR #245, STR #250, STR #277, STR #281)
Fl_Preferences incorrectly created the preferences directory
before necessary (STR #247)

The WIN32 project files still defined the (obsolete) FL_STATIC
constant (STR #279)

Fl_Text_Display::buffer() did not support NULL values, making it
impossible to clean up text buffers from a subclass (STR #295)

Fl_Text_Display did not support a NULL unfinishedStyleCB
function (STR #241)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3219 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-03-01 02:05:02 +00:00
Michael R Sweet
4c0903ad50 WIN32 redraw fixes.
Fl_Tabs now uses FL_DAMAGE_SCROLL for damage to
the tabs themselves.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2683 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-10-22 17:39:12 +00:00
Michael R Sweet
11bf9b28da Move Fl_Help_Dialog to fltk_images library.
Add "Additional Libraries" section to docos as needed.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2625 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-09-16 01:35:34 +00:00
Michael R Sweet
1aecada52c DLL changes (still some more to go...)
Move BMP, GIF, and PNM image loaders to fltkimages project.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2583 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-14 16:19:48 +00:00
Michael R Sweet
6a6e4ab66c Separate the extra image functions into fltk_images.
Add new fl_register_images() function to register the extra file formats
with Fl_Shared_Image.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2329 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-28 21:04:37 +00:00
Michael R Sweet
88d54cd78b Massive update to use strlcpy() and strlcat() instead of strncpy()
and strncat() in almost all places (there are still a few strncpy's
that need to be used...)

Added configure check for strlcat() and strlcpy().

Added emulation code for strlcat() and strlcpy().


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2239 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-16 12:47:44 +00:00
Michael R Sweet
a368380f80 Update VC++ project files.
Fix double-definition in Fl_File_Chooser.cxx.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2160 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 14:15:50 +00:00
Michael R Sweet
44bb5f60de Add Fl_Preferences class to base library.
Add FLTK_DATADIR definition to config.h for system-wide configuration
data.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2126 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-28 16:41:17 +00:00
Michael R Sweet
aab290b503 Remove Fl_Output.cxx from VC++ project files...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2075 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-12 18:17:35 +00:00
Michael R Sweet
2454c390a9 Split out forms stuff in MSVC++ project.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2029 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-25 21:41:50 +00:00
Michael R Sweet
5ca343014f WIN32 project and build fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2017 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-25 19:35:13 +00:00
Matthias Melcher
4603756ed1 - added Win32 native drag'n'drop code
- added dnd support for Fl_Group (not tested with X!)
- added dnd support for Fl_Input (not tested with X!)
- no Mac implementation yet!

Go ahead: drag text or a file from the explorer into
a text widget! Tadaa!


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1971 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-02-24 17:52:18 +00:00
Michael R Sweet
d16dbc1486 Add Fl_BMP_Image.cxx to VC++ project files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1920 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-08 17:17:53 +00:00
Michael R Sweet
ba2be02ab2 FLTK 2.0 threading support under FLTK 1.1. Needs porting to OSX.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1819 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-06 22:16:49 +00:00
Michael R Sweet
4b23d4c6d5 VC++ fixes, plus add new tiled_image project file.
Use the plastic box type for the tiled_image demo.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1783 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-29 00:24:43 +00:00
Michael R Sweet
79d6a32be9 Add new plastic box types (kindof a shiny translucent box type...)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1781 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-28 21:37:35 +00:00
Michael R Sweet
13e7d76397 WIN32 fixes for the new image stuff...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1705 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-19 20:59:59 +00:00
Michael R Sweet
9208e9d007 Windows doesn't have case-sensitive filenames, so we can't have two
fl_file_chooser.cxx's...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1620 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-09-30 12:30:13 +00:00
Michael R Sweet
e7f3ad8691 Updates for 1.1.0b2...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1615 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-09-29 21:17:17 +00:00
Michael R Sweet
91b72d0918 Update VC++ project files.
Add support for FLTK_DOCDIR env var. to FLUID.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1588 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-09-23 13:08:03 +00:00
Michael R Sweet
e864789db9 Fix Visual C++ projects.
One more fix for makesrcdist...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1578 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-08-19 00:14:12 +00:00
Michael R Sweet
9ab0bb195e WIN32 updates to make the DLL project work again...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1563 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-08-06 23:51:39 +00:00
Michael R Sweet
0771e7cc7d Update WIN32 projects and config file.
Fix sign of Fl::e_dy to match screen coordinate directions under WIN32.

Note: tooltips not working under WIN32...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1546 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-08-03 02:28:32 +00:00
Michael R Sweet
3a9d945d07 Use the Multithreaded DLL runtime model for all projects - I haven't found
a system yet that this doesn't work on, and you get smaller executables...

FLUID source needs Windows headers for GetTempPath and MAX_PATH definitions.

Visual C++ complained about the "char **/*argv*/" in CubeMain; added a space
so that */ is not seen.

Include <stdlib.h> to get argc/argv definitions rather than hardcoding
the declarations.  This seems to work in all modes.

Add can_do_overlay() method for WIN32 (seems to work on my TNT card at least)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1416 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-03-15 22:39:57 +00:00
Michael R Sweet
d7f026e02e fl_line_style() used "." instead of "->" for setting the pen.
Added fl_line_style.cxx to the static and DLL library projects.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1131 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-05-17 21:16:42 +00:00
Michael R Sweet
bf5f55c860 Updated the VC++ project file to include fl_compose.cxx.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1030 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-06 21:19:26 +00:00
Michael R Sweet
30ce47ef69 New WSAAsyncSelect code for WIN32 Fl::add_fd() support.
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-29 03:14:41 +00:00
Michael R Sweet
6c25ba6d73 Added fl_add_idle.cxx to project files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@556 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-23 19:42:44 +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
40df358bdb Updated headers to only support DLLs under MSVC++.
Updated WIN32 Debug target to not change inlining option
from the default (causes an error with VC++ 6.0)


git-svn-id: file:///fltk/svn/fltk/trunk@292 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-18 14:26: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
bbbec0bbfb Updated project files for new FD stuff - need to link with wsock32.lib.
git-svn-id: file:///fltk/svn/fltk/trunk@200 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-07 19:08:28 +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
02646a21dc Changed scandir_win32.cxx to scandir.c.
git-svn-id: file:///fltk/svn/fltk/trunk@151 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-08 21:02:20 +00:00
Michael R Sweet
7834c1c086 Fixed project file for Windows.
git-svn-id: file:///fltk/svn/fltk/trunk@147 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-07 22:10:35 +00:00
Michael R Sweet
6655f6e3e7 Changed files to .cxx in VC++ project files.
Remove /TP options...


git-svn-id: file:///fltk/svn/fltk/trunk@144 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-07 13:57:06 +00:00
Michael R Sweet
411cc4d1fc Updated project files.
git-svn-id: file:///fltk/svn/fltk/trunk@62 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-05 21:41:54 +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