Commit Graph

324 Commits

Author SHA1 Message Date
Bill Spitzak
56347777a1 Better horizontal scrolling of Fl_Input when cursor is near end of line, restored the selection of all text when Fl_Input::value(x) is done
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1179 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-08 07:38:29 +00:00
Michael R Sweet
7bf3c4e2eb Fixed bug where Fl_Output and Fl_Multiline_Output would scroll to the
end of the value() text.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1175 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-06 18:42:08 +00:00
Michael R Sweet
f4fff52828 Fix for filename_isdir() under Winbloze. Strip trailing backslash for
stat() call (don't we need the trailing slash for filename_list()???)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1174 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-06 15:25:20 +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
Michael R Sweet
b61e94a207 Makefile fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1164 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-04 20:57:34 +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
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
Bill Spitzak
9743763c7f Small patch to remove a compiler warning from gcc.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1128 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-05-17 07:09:26 +00:00
Carl E. Thompson
59afeb1f94 If Fl_Menu_Item attributes are not set, derive menu item color from
Fl_Menu_::textcolor.

Carl


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1126 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-05-16 18:27:10 +00:00
Michael R Sweet
77272369dc Dropped extra #include <stdio.h> that wasn't needed.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1125 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-05-16 12:26:58 +00:00
Bill Spitzak
d5b47034a7 Added Fl::first_window(window) to change which window is at the top of
the window list.  This window is used as the "parent" of any modal
windows you create so it is a good idea to be able to change it.
Normally it is whatever window got the last event.

Fixed Fl_Menu::global handler to use first_window so if a modal window
pops up in response it is parented to the window containing the
menubar rather than the current top window.  This was an annoying bug!

Copied fl_line_style() and the line_style demo over from fltk 2.0
because I am tired of mailing this code to people.  Better to advertise this
as "added fl_line_style() function to set line thickness, dash patterns,
and end caps".

Fixed the documentation for these changes.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1117 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-05-13 20:03:20 +00:00
Bill Spitzak
2d826eb564 Fl::wait() does not return immediately when no windows
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1114 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-05-11 21:58:09 +00:00
Bill Spitzak
eb63364311 XForms-compatable shortcut strings modified so that "0xabcd" can specify
an arbitrary key by hex code.  Lame but needed for some DD software...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1113 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-05-10 16:43:36 +00:00
No Author
0f36c495f9 This commit was manufactured by cvs2svn to create branch 'branch-1.0'.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1099 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-27 00:30:08 +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
cd914369a6 Setting box(FL_NO_BOX) on a button makes it an invisible overlay
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1075 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-17 07:42:01 +00:00
Bill Spitzak
abdd8a1e23 Some more size adjustments so smaller fonts look better
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1068 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-14 09:08:14 +00:00
Bill Spitzak
e0118f6a16 Some adjustments so setting FL_NORMAL_SIZE to 12 looks better
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1065 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-12 04:32:05 +00:00
Bill Spitzak
ffd26dfc45 I made FL_NORMAL_SIZE into a public int variable. You can now change it
before any widgets are created, in order to change the default size of
the fonts used.  The most useful thing that can be done is to set it to
12 so that the default font size matches Win32.

I also fixed the menubar drawing a bit so that a menubar with a FL_FLAT_BOX
draws correctly.

It should also be documented that "Fl::set_color(Fl_Color(15),0,0,128);"
can be used to get Win32-style highlighting of menus and text items.  This
is not portable to fltk 2.0.

With these changes it should be easier to get fltk to look just like Win32.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1062 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-11 08:11:56 +00:00
Bill Spitzak
177e3cd076 More fixes to the NT OpenGL overlays
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1058 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-07 16:55:46 +00:00
Bill Spitzak
328a8f8f0d Fixes for Cygwin POSIX emulation layer from Norman Vine.
Requires the symbol __CYGWIN__ to be defined, appears to disable the
special meaning of backslash and colon in file names.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1056 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-04 17:57:05 +00:00
Bill Spitzak
6f42bc1a58 Fl_Value_Input callback can call value() or destructor on the Fl_Value_Input
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1055 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-04 17:05:59 +00:00
Bill Spitzak
b2f7871fb8 Yet another cut/paste fix for NT
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1053 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-28 05:10:17 +00:00
Bill Spitzak
bb39fe8be0 Removed more testing code from Fl_Gl_Overlay
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1051 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-24 08:55:34 +00:00
Bill Spitzak
9bd57e56b0 Removed debug printfs from overlay code
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1050 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-24 08:48:40 +00:00
Bill Spitzak
eeaa7f7ae0 OpenGL overlays now work on NT. Tested on several different cards.
They work best on 8-bit overlays like the SGI 320 has.  On cards with
fewer bits you get only a few colors, really only FL_BLACK, FL_RED, and
FL_WHITE are guaranteed to work.  This could be improved but would mean
copying the ugly X colormap allocation code.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1048 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-24 08:42:03 +00:00
Bill Spitzak
7851ae3252 OpenGL overlays now work on NT!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1044 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-18 10:04:18 +00:00
Bill Spitzak
ca15addad2 Fixed up the colors the browser draws when it is deactivated, it does not
change the background color, this fixes Jeff Meininger's demo.

Fl_Input allows ^I, ^J, ^L, and ^M to be typed as control characters and
inserted.

If you type ^H or ^? they act like backspace and delete.

Clicking on an input field no longer selects the whole thing, it inserts
the cursor.  My tests of Win32 to see what they did were wrong, this is
a better simulation and more user friendly, too.

Fixed divide-by-zer in the slider code?

Better osf code for filename_list from Alexander Mai


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1042 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-17 09:38:20 +00:00
Michael R Sweet
ca5f67d6b3 Always draw a box around the current browser selection.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1040 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-15 19:14:57 +00:00
Carl E. Thompson
af5190b95f Fix to compile on GCC 2.95.
Carl


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1037 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-08 16:02:25 +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
Michael R Sweet
d6caf3aff8 Fl_Button and friends didn't honor FL_WHEN_NOT_CHANGED.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1020 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-02 19:10:49 +00:00
Michael R Sweet
443c4883cc Fl::compose() wasn't ignoring control chars (like Delete :)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1018 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-29 21:54:55 +00:00
Michael R Sweet
aee4def606 Updated version to 1.0.8.
Applied colors patch.

Updated doco makefile for current version of HTMLDOC.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1015 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-25 03:44:22 +00:00
Bill Spitzak
42ebf79306 New X function: fl_open_display(Display*) lets you run fltk on an
already-created X connection.  This should help with interoperability
with Xt or other toolkits.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1013 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-23 09:23:53 +00:00
Bill Spitzak
5752429ca9 fl_shortcut_label() on Win32 prints the same strings for function keys
like "Delete" and the arrows as it does on X (at least for all the common
keyboard keys).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1011 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-23 09:14:23 +00:00
Bill Spitzak
666d041224 Fixed the changes I made yesterday so that int/float input fields do not
eat Alt+letter key combinations.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1009 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-22 00:56:53 +00:00
Bill Spitzak
b5529a0aea Rearranged the compose code so it is clearer and can be called by things
other than the Fl_Input widget.  It now understands "dead keys" on X.

Calling fl_set_fonts repeatedly returns the same set of fonts each time,
rather than adding copies of all the fonts to the set each time.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1007 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-21 10:30:00 +00:00
Bill Spitzak
0bd9018d64 Fixed the Ctrl+P shortcut problem reported by dalitz@infotech.de
The previous keystroke is not confused with a navigation control
key when the window focus changes.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1003 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-18 07:11:09 +00:00
Bill Spitzak
415db360a1 Tiny change to Fl.H to get around bug in new gcc versions?
Change to code to try alternative cases of shortcuts suggested by
Yaroslav Volovich.  It should now work for foreign letters.  However
I was unable to get it to do anything no matter how I set the locale.
It may be better to fix this by hardcoding in the iso-8859-1 character
set and not use ctype at all, "locale" is a horrid travestry anyway and
has done more to *prevent* internationalization than to help it by making
it virtually impossible to test foreign components.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1001 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-15 08:31:46 +00:00
Bill Spitzak
1e5596293b Fixed cut/paste to other applications on Win32?
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@998 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-05 09:10: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
Bill Spitzak
d37850b115 Oops, the change to filename_list broke Irix, which defined the scandir
in the original way.  I hope this fix was not a mistake, not sure how
many different systems need it each way, but I was trying to make the
most common case the default.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@996 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-01-27 08:27:26 +00:00
Bill Spitzak
53919249e2 Sets the "input hint" which is needed for TWM and TWM-derived window managers.
The #if's in filename_list.cxx have been rearranged so the most common
case is the default.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@995 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-01-26 06:27:15 +00:00
Bill Spitzak
be12eee3e5 If compiled with USE_COLORMAP=0 it will always try to find a TrueColor
visual on the X display, rather than failing if the default is not
TrueColor.
This does not affect any normal compilation because USE_COLORMAP is
defaulted to 1.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@993 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-01-23 01:56:42 +00:00
Bill Spitzak
eb9472f8d3 *** empty log message ***
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@991 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-01-23 01:24:17 +00:00
Bill Spitzak
fafc3286cd Pageup/down by correct amount in scrollbar
Handles minimum size of slider in scrollbar when deciding whether to
page up/dwon.

Code from Matt Morrise so that shift+click extends the selection in
the browser (ctrl+click remains for toggling the current item).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@990 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-01-20 06:14:34 +00:00
Bill Spitzak
ecc91867b3 Fixed divide by zero in Fl_Scrollbar found by Harm-Jan Zwinderman. This
happened if minimum == maximum.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@987 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-01-17 20:40:12 +00:00
Bill Spitzak
685d58c497 Buttons on scrollbars draw pushed in (fix from barrero@irit.fr)
Fl_Menu_::remove(int i) will remove an entire submenu if i is the
index of the menu title.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@985 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-01-16 04:30:39 +00:00