Commit Graph

195 Commits

Author SHA1 Message Date
Matthias Melcher
820b67bc56 This change will make sure that top-level windows will fit inside the screen that contains the original x and y.
The previous version would reposition windows in the screen that currently contains the mouse. That feature made it impossible to position tool windows on a second monitor, etc. . 

This change does not affect popup windows which will still pop up in the screen that has the mouse pointer.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4559 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-09 09:52:16 +00:00
Matthias Melcher
f0d44ed955 STR #1014: FLTK's CR/LF conversion would crash if the clipboard was empty
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4555 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-05 10:09:14 +00:00
Dejan Lekic
3c96dd4d85 Fix of cross-compiling (host: *-linux-* , target: *-mingw32) problem.
Patch provided by Amir Shalem <amir@boom.org.il> in STR#995 .



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4541 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-27 05:25:50 +00:00
Matthias Melcher
4ba366f7d7 Bordersize was calculated wrong for borderless windows
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4531 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-21 22:28:57 +00:00
Matthias Melcher
ac65443882 Fixed CR to CRLF conversion. Thanks for the patch, Alessandro.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4530 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-21 22:05:48 +00:00
Michael R Sweet
28940a5c75 Updated WIN32 cut/paste code to consistently handle DOS text (STR
#961)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4475 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-08 00:57:00 +00:00
Matthias Melcher
b6f2bc9250 STR #831: When moving an OpenGL window outside the screen and then back again lets fltk get stuck.
The problem seems to be an idefinite repeat of the WM_PAINT message. The driver sends an internale WM_PAINT (one that does not contain an update region). FLTK then creates a union with the still existin 'i->region' of the OpenGL window, causing yet another WM_PAINT message.

The fix is to not run through the WM_PAINT handler at all if there is no update region (as suggested by Microsoft). This change is definetly debatable, since it does modify some internal FLTK behavior. I will commit it anyways for now, but we should pay very close attention to redraw problems by those who use the svn releases.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4456 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-25 09:51:20 +00:00
Matthias Melcher
b1ad1a2f96 STR #848, missing xclass support implemented as suggested by Mike.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4455 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-24 19:08:31 +00:00
Matthias Melcher
e9f7f4ce49 Silly typo would position new windows, that touched the right screen border, all the way to the left, instead of just left of the screen's right border.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4450 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-23 22:10:47 +00:00
Matthias Melcher
510545879b Win322: Calling Fl_Window::size() and friends would move focus from the current window to this window. This was especially painful in Fluid when trying to resize a window by typing its new size into the Widget Properties dialog.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4389 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-06-01 09:26:16 +00:00
Matthias Melcher
d00881fbc4 Fixed WIndows line endings
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4388 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-06-01 09:17:51 +00:00
Matthias Melcher
df32d2a9b8 Fl::copy() would always set a flag, instructing Fl::paste to use the internal clipboard. ALthough that is faster, Fl::paste() would eventually miss changes to the external clipboard.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4387 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-06-01 07:48:16 +00:00
Matthias Melcher
386cadbcf7 Fluid interactive window resizing fixe (STR #873, 791)
Fixed fake_X_wm call on Win32 to return the correct window decoration sizes, even in XP's "Teletubbies" mode.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4379 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-29 22:36:25 +00:00
Michael R Sweet
b33cc94810 Fix sentinel value for HWND on WIN32 (STR #862)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4362 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-20 02:39:39 +00:00
Michael R Sweet
461d60a0f3 Revert WIN32 redraw fix from r4244, and apply a new one that is a bit
cleaner which should not cause problems.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4360 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-19 16:22:29 +00:00
Michael R Sweet
07abce4903 Check for FL_MOVE messages with the high bit set to 1 - treat as signed coordinate data.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4337 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-12 16:51:18 +00:00
Michael R Sweet
bce23d108a OpenGL windows that were completely off-screen caused problems
with some graphics cards on WIN32 (STR #831)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4332 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-12 14:08:02 +00:00
Michael R Sweet
1c399af444 Update source file headers with STR web page.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4288 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-16 00:13:17 +00:00
Michael R Sweet
70c4cd102f Fix compiler warnings.
Use fl_yes and fl_no for the Forms emulation, instead of the hardcoded
strings.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4283 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-14 13:56:07 +00:00
Matthias Melcher
500665b24d This is an attempt to fix the redraw problem on WinXP and other Windows variants.
This is how the bug looks like: load a test project that uses a single buffer window, 'scroll' fails nicely. Compile (in debug mode) and run. If you now quickly drag another window across the fltk window, some white spots will remain unrefreshed. Another great candidate is 'input_choice', but 'fluid's toolbox fails as well.

This fix is part of the WM_PAINT message handler. Instead of validating the whole area that FLTK drew, we now only validate the area that Win32 beleives was damaged. This may be inefficient if we redraw larger areas, but I did not see any refresh errors anymore, which IMHO has priority.

Again, I'd be very happy if other ussers could check for and confirm the bug and the fix.

Thanks!



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4244 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-07 13:39:43 +00:00
Michael R Sweet
782abe6de6 Added MacOS X monitor support.
Now use new screen_xywh() API for keeping things on the current screen.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4227 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-31 20:31:39 +00:00
Michael R Sweet
add37faa25 Copyright updates.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4052 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-24 21:55:12 +00:00
Michael R Sweet
452c17f8fb Fl::wait() could block on WIN32 if the window was deleted via
Fl::delete_widget() (STR #679)

src/Fl.cxx:
    - Post an application message when a window is hidden on WIN32.

src/Fl_win32.cxx:
    - Change async select message to WM_APP + 1, and document
      our use of WM_APP.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4043 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-14 13:44:24 +00:00
Michael R Sweet
b5562132e5 Fl::event_number() didn't always match the value sent to the
handle() method (STR #634)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3930 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-12-03 03:14:17 +00:00
Michael R Sweet
a5a683f35f WIN32 compile fixes...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3875 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-10-19 18:21:55 +00:00
Michael R Sweet
bf910884cc Documentation updates (STR #570)
Added DESTDIR support and now remove all man pages for the
"uninstall" target (STR #545)

Fix PNG drawing on buggy WIN32 graphics cards (STR #548)

The configure script didn't propagate the CPPFLAGS environment
variable (STR #549)

The numpad keys didn't work properly on WIN32 (STR #502)

fl_input() and friends now set the input focus to the text field
when the dialog is shown (STR #553)

Fixed background color mixup when drawing Fl_Choice menus (STR
#544)

Fixed MingW makefiles (STR #550)

More VC++ project file tweaking (STR #559)

Fl_PNG_Image didn't use the png_set_trns_to_alpha function when
available (STR #547)

The FL_UNFOCUS event wasn't always sent when switching tabs (STR
#558)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3868 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-10-18 20:22:25 +00:00
Michael R Sweet
ca116a1b6c FLTK now honors the numlock key state (STR #369)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3429 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-06-01 01:08:50 +00:00
Michael R Sweet
a3d0905c9e Copyright updates and prep for 1.1.5rc1.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3391 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-04-11 04:39:01 +00:00
Michael R Sweet
7f15f8d97f Make sure Fl::event_text() is not NULL. (STR #70)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3030 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-06-15 04:27:35 +00:00
Michael R Sweet
f438ffa087 Added documentation for all forms of Fl_Widget::damage() (STR
#61)

Fl_Double_Window now has a type() value of FL_DOUBLE_WINDOW, to
allow double-buffered windows to process redraws properly on
WIN32 (STR #46)

Added FL_DAMAGE_USER1 and FL_DAMAGE_USER2 damage bits for use by
widget developers (STR #57)

Fl_Help_View didn't support numeric character entities (STR #66)

Menu shortcuts didn't use the Mac key names under MacOS X (STR
#71)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3026 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-06-12 01:36:18 +00:00
Michael R Sweet
c0e40ac55e Potential fixes for double-buffered subwindows on WIN32 (STR #1)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2988 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-05-20 19:09:33 +00:00
Michael R Sweet
00cb676e11 Copyright update for 1.1.3 release (not quite yet, but soon...)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2936 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-01-30 21:46:07 +00:00
Michael R Sweet
c25988a756 Use PM_REMOVE, not "1".
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2932 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-01-28 13:56:06 +00:00
Michael R Sweet
a74795bbb8 Get rid of some valid compiler warnings with CodeWarrior that were reported
by Paul Chambers.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2845 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-11-19 16:37:36 +00:00
Michael R Sweet
0daa36de39 More fun with WIN32 redraw...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2710 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-10-29 20:18:55 +00:00
Michael R Sweet
0a5f303608 Possible fix for WIN32 redraw lockup (mainly with menus)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2695 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-10-28 15:15:24 +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
fe8518f37c Fix bug #621740 - tooltips stay up in WIN32 when USE_TRACK_MOUSE is not
defined.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2670 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-10-11 13:46:56 +00:00
Michael R Sweet
526e94341d Some patches from Ori Berger to plug some resource leaks and use a
different WIN32 message for threading under Windows.
(didn't include the cleanup or release changes)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2336 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-01 20:14:08 +00:00
Michael R Sweet
f50c056726 WIN32 compile fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2287 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-07 16:37:48 +00:00
Michael R Sweet
acd6bd5cc8 Clean up string includes.
Fix Fl_Shared_Image::add_handler() and friends.

Fix Fl_PNM_Image loader.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2260 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-25 13:38:25 +00:00
Michael R Sweet
4775381658 Fix WIN32 redraw problems.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2250 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-23 16:42:22 +00:00
Michael R Sweet
c2aa513a5a Merge WIN32 ValidateRgn() fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2199 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-06 21:15:48 +00:00
Michael R Sweet
4b82930e04 DND conditional stuff.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2171 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 23:45:52 +00:00
Michael R Sweet
c0670cdc55 WIN32 fixes for BC++.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2168 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 20:05:19 +00:00
Michael R Sweet
11f56a0dc0 Possible BCC fix; have to check the change...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2167 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 19:44:01 +00:00
Michael R Sweet
2779ff9099 WIN32 project file fixes.
Tooltip window fix.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2139 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-30 12:26:33 +00:00
Michael R Sweet
c8aebffa88 Flag menu and tooltip windows as WS_EX_TOOLWINDOW so they don't appear in
the task bar...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2131 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-29 20:18:01 +00:00
Bill Spitzak
772b36810d Win32 version stores all the info passed to WndProc into fl_msg so an
add_hander method can see it.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2089 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-16 07:47:31 +00:00
Michael R Sweet
7482426735 Make Fl_Output a subclass of Fl_Input, and add input_type and readonly
methods/constants to support Fl_Output as a special case of Fl_Input
(you can do everything but change the text in Fl_Output...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2073 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-11 11:52:43 +00:00
Michael R Sweet
06a23813f8 Wrap remaining DnD includes and code for WIN32 (Cygwin with GCC 2.x
won't work)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2065 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-10 15:01:22 +00:00
Michael R Sweet
bab08d8347 Hopefully fix the WIN32 resize on move bug.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2063 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-09 21:17:01 +00:00
Michael R Sweet
6fa4abfe54 Fix NULL argument to fl_filename_name()...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2056 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-07 18:31:55 +00:00
Michael R Sweet
6c796f88c7 Rename all remaining functions that don't start with fl_ to
fl_foo. (filename_xyz becomes fl_filename_xyz, down becomes
fl_down, define_FL_PLASTIC_BOX becomes fl_define_FL_PLASTIC_BOX,
etc.)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2026 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-25 21:08:42 +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
Michael R Sweet
9700e540c1 WIN32 fixes for DND.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2016 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-25 19:17:05 +00:00
Bill Spitzak
5f55e1cd63 Back-ported cut & paste code from fltk2.0.
This code splits the cut & paste into two buffers. The "SELECTION" is
used for the currently highlighted text and for middle-mouse paste and
(if possible) for handling drag & drop. The "CLIPBOARD" is for Ctrl+C
and Ctrl+V style cut & paste.

This matches how Motif, GTK, and KDE 3.0 work. But many older X
applications (including KDE 2) can only see SELECTION, this results in
cut & paste incompatability that is familiar to X users. However this
now moves fltk over to the majority camp.  On all systems this
eliminates the annoying inability to select a region and replace it
with Ctrl+V.

On Mac and Win32 the SELECTION is local to the application, so
middle-mouse paste only works between fields in the application. There
may be tricks (special clipboard data types? use drag & drop?) to make
it communicate, but unless there are standards it would be fltk-only.

The file Fl_cutpaste.cxx has been deleted, so update the IDE files!
The Win32 and Mac versions have NOT BEEN TESTED! I tried to be careful
editing them but they may need some work.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1989 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-07 19:22:58 +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
0372675ee1 Always resize cells in table if set/max width not the same as the
column width.

Pass UNFOCUS events to parent groups, too (for Fl_Tabs)

Conditionally compile in support for TrackMouseEvent(), since support
for it is spotty at best.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1966 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-02-20 19:29:57 +00:00
Michael R Sweet
492b81c240 Return 0 after processing WM_PAINT message.
Fix clip test in fl_draw().


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1944 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-23 16:58:01 +00:00
Michael R Sweet
d96fa88743 Fix WIN32 build.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1922 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-09 15:23:11 +00:00
Michael R Sweet
bccdafdaef Fixed from Teun.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1919 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-07 20:40:02 +00:00
Michael R Sweet
8fe611b5cd Fix changing of schemes - otherwise Fl_Window::show() could cause a
reference to a non-existing tiled image.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1908 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-03 18:28:37 +00:00
Michael R Sweet
64b4177ef4 Copyright updates...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1903 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-01 15:11:33 +00:00
Michael R Sweet
e5a26965bf Add Teun's CygWin patch for select()...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1902 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-01 14:14:34 +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
ca83eb11a1 Fix infinite loop bug with WIDTH=100% in Fl_Help_View widget.
Fix handling of WM_SYNCPAINT message.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1795 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-30 16:10:08 +00:00
Michael R Sweet
f525840495 Fix all references to '.C' files (now .cxx)
Update Fl_Image() class to track depth and data, so FLUID will be
able to use it as the base class.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1712 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-22 15:35:02 +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
a1944b77ab Cygwin fixes...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1666 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-29 21:59:15 +00:00
Michael R Sweet
831d7cde5b FL_KEYUP event support.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1661 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-27 03:45:29 +00:00
Michael R Sweet
f5f0d8a013 Save/restore GDI pen.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1621 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-09-30 12:42:33 +00:00
Michael R Sweet
5994addeca Fixed tooltips under WIN32 - no more toolbar buttons...
Fl_Group::handle() didn't pass FL_RELEASE events to
Fl_Browser_ and similar subclasses of Fl_Group; updated to
pass only to widget that should receive the event.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1547 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-08-03 15:48:20 +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
2d3fd88eeb More mouse wheel stuff (as compatible as possible with the 2.0 code...)
Updated the makefile to use config.status --recheck before calling
config.status (why they can't provide one that does both, I don't
know...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1540 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-08-02 20:09:25 +00:00
Michael R Sweet
a1236f0900 One more keyboard fix for good measure - still need to address "stuck"
meta key in keyboard demo, but that is because we don't get the "keyup"
event because Windows takes our focus away...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1447 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-27 15:43:38 +00:00
Michael R Sweet
aa949a24f0 Fixing lock/meta key handling...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1446 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-27 15:21:33 +00:00
Michael R Sweet
c7615943db Mask low bit of key state for all keys.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1445 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-27 14:55:33 +00:00
Michael R Sweet
ff3295f036 Handle WM_ACTIVATEAPP message under WIN32, using GetAsyncKeyState() for
all of the key and button states in FLTK.

SunOS 4.x changes (check for <sys/stdtypes.h> and don't rely on
realloc(NULL, size) working - this doesn't work on a lot of platforms!)

Fix nesting of #ifdefs in vsnprintf.c - the C++ wrapper stuff wasn't
being included outside the checks for the individual functions...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1444 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-27 14:39:27 +00:00
Bill Spitzak
5f96ece638 Another fix for WM_SYNCPAINT from Matt
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1437 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-22 16:54:23 +00:00
Bill Spitzak
bb86f132eb Restored WM_SYNCPAINT handling
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1428 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-13 17:30:21 +00:00
Michael R Sweet
94788c4628 Copyright 2001.
FLTK 1.0.11.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1356 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-01-22 15:13:41 +00:00
Michael R Sweet
e01a7a33d7 Commented out USE_ASYNC_SELECT since it doesn't seem to work...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1331 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-11-20 14:17:43 +00:00
Bill Spitzak
2cbf4041b3 Does not clear Fl::keysym on every event, this makes better back compatability and fixes Win2000
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-10-21 20:01:56 +00:00
Bill Spitzak
f7e4caec25 Whoops, I screwed up the timeout callbacks a bit.
add_timeout will now do the callback at time t after the call to
add_timeout, like before.

add_interval_timeout is a new call that measures time from when the
last timeout was called.  This has slightly less overhead and allows
accurate spacing of timeouts.

Patch from Stuart Levy so the *last* widget in an Fl_Pack may be
resizable.  This should be compatable because resizable didn't do
anything before so there was no reason to set it.

Makefiles for no-cygwin from Paul Baxter (see README.win32 for info).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1222 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-20 05:47:38 +00:00
Bill Spitzak
be106a0977 Cleanup of the timeout and Fl::wait() code. This one calls the clock
function less than half as much, which resulted in a noticable
improvement in a flip book program I was working on.  The code looks
nicer, too, and I am reasonably certain it works the same.

Fl::wait(time) with a time greater than the system can handle (24.855
days on NT, the same on some Unix systems) will now act as though the
time is infinity.  Before it would do unpredictable things.

"USE_POLL" now compiles and works, although it is disabled by default.
poll() is an alternative to the Unix select() call which is available on
Linux and Irix, but I don't know if it is faster, you can try it by
editing config.h.

I tried making the NT USE_ASYNC_SELECT code do translate/dispatch of
the select events on the assumption (based on experience) that not
doing this to every event gives NT fits.  This appears to work but I'm
not sure if it fixes anything.

X version does not crash if Fl::wait() is called when the display is
closed (it will not return unless you have a timeout or fd callback
set up, though).

Fixed up the documentation for all of this, including getting rid of
some completely misleading documentation.

Now I need to get this stuff into 2.0...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1215 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-18 00:38:41 +00:00
Michael R Sweet
f87393aaa1 OK, now version 1.0.9
Updated email addresses to point to fltk.org domain...

Updated README and CHANGES files accordingly.

Updated makeinclude and Makefile files to put -L../lib before the
LDFLAGS/GLDFLAGS to avoid problem reported by Alexander.

documentation/Makefile wasn't including makeinclude.

Updated FLUID about window to show version 1.0.9.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1168 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-05 21:21:24 +00:00
Bill Spitzak
b0cdb25d3c Fixes for 1.0.8 I found:
Fixed hardware overlays.  The problem was the new fl_clipped() code,
which tests against the current window size.  The hardware overlay
code did not set the current window when drawing the overlay.  I
needed hardware overlay for DD's code, I'm not sure if these fixes are
good enough to enable this in our general release.  Hardware overlay
still only works on SGI Irix.

Some patches to turn off the MSVC++ -Oa (assumme no aliasing)
optimization flag.  Suprisingly this only broke a few parts of fltk,
or at least these are the only ones I found.

Does not unmap child windows when the main window is iconized.  This
reduces flashing when the window is deiconized.

Fl::key() is set to zero by all events except key down/up.  This will
allow you to reliably test if an event or callback was produced by a
keystroke.  Fixes the bug posted about stopping Escape from closing
the window.

User defined cursors on OpenGL windows slowed down NT a *LOT*.  Some
attempts to fix this by turning off the cursor while drawing the
window.

Filename completion in the file chooser works better on NT.  Typing
TAB fixes the case of everything you typed to match the shortest name
that can be completed.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1158 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-03 08:37:09 +00:00
Michael R Sweet
4b561b6e90 Updated copyright notices for all of the 1.0.x files.
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-25 22:17:00 +00:00
Bill Spitzak
4edd134933 Fixed definition of glutBitmapWidth to match header file.
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-25 07:48:07 +00:00
Bill Spitzak
a32453e680 Moved FL_LEFT_MOUSE, FL_MIDDLE_MOUSE, and FL_RIGHT_MOUSE from forms.h to
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-05 06:51:07 +00:00
Bill Spitzak
53bf740c38 3rd and deeper nested Fl_Windows on Win32 redraw correctly.
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-02-04 06:35:22 +00:00
Michael R Sweet
c0cdc56926 Fixed async selection code - wasn't calling TranslateMessage...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@967 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-12-31 02:56:18 +00:00
Michael R Sweet
df57aa4d2f Re-integrated all of the old WIN32 select() code just in case it is needed
(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-30 17:37:05 +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
Bill Spitzak
e7f42fa15f Fixed bug on Win32 where programs would stop paying attention to keys.
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
1999-12-15 04:58:27 +00:00
Michael R Sweet
d1f909be8a fl_arc() and fl_pie() fixes for WIN32 removed - the problem is with
the SGI X server with small arcs & pies, and not with WIN32.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@858 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-11-12 00:19:14 +00:00
Bill Spitzak
ce249490d4 These are some (hopefully minor) changes we keep needing to edit into
each new version of fltk for use at Digital Domain.  These were found by
running a diff between 1.0.6 and our inhouse version.

1. WinMain is moved to the fl_call_main.c file so that it can easily be
conditionally-compiled out (code copied from fltk 2.0, not tested!)

2. Fl_win32 ignores the value of window->xclass().  This seemed to cause
problems when windows had different xclass() in the same app and did not
have any useful effect on windows.  This value is changed to set the icon
of the app on X.

3. sgi pragmas added to x.H to turn off warnings from their broken xlib
header files.  Please tell me if this causes any sgi compilers to complain,
we should add more stuff to the #ifdef to stop that.

4. Fl_Gl_Window::ortho() changed so that text and images are not erased
if the origin is off the left/bottom of the window.

5. Small change to Fl_Input so that a click that gives it the focus also
selects all the text.  This is more windoze-like and it seems the users
really like it.

Note also that we had to set USE_XDBE to zero to get things to work on
the newest Irix machines.  I give up, Xdbe has been nothing but an impossible
and confusing mess and it is obvious that the X servers are not testing it
and thus it is suffering from software rot so it is unlikely to work anywhere
in the future.  Not sure if we want to switch it off in the official version,
though.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@774 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-10-14 04:56:09 +00:00
Bill Spitzak
c8794e2f58 Fixed some WIN32 bugs found in 1.0.5:
FL_MOUSELEAVE had an extra underscore
call to toupper() removed
const char* cast added to fl_draw_pixmap

Change to Fl_Gl_Window that did not get in in time for 1.0.5, it caches
the current gl context and does not call glXMakeCurrent (wglMakeCurrent
on WIN32) if not needed.  This distinctly speeds up Mesa, Irix, and
Windows opengl, although I am stumped why such a test is not built
into those libraries already.

If you use other code that sets the current OpenGL context fltk will
get confused because it does not know it changed.  To fix such programs
you must call fl_no_gl_context() to clear the cache.

There is a report that this causes the fractals demo to crash on some
Linux and Irix machines, although I can't reproduce it.  I suspect the
problem is the fractals demo and not fltk, but this change may be making
it more likely to fail.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@726 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-09-16 05:34:27 +00:00
Bill Spitzak
0bb590c832 Pragma added around xlib.h to shut up the IRIX compiler warnings
Fluid writes "class foo;" to the header and c file without prepending
"extern" or "static".  This patch also does this to "class foo bar;"
which is wrong...

Tabs draw very short labels.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@629 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-07-22 07:27:12 +00:00