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
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
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
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
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
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
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
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
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
on X (this already worked on Win32).
Changed the resize demo program to test this.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@981 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Fl_add_idle adds new functions to the end of the queue ring, rather than the
start, so they are executed in the order added, and a callback that adds
itself does not prevent others from being called.
Fluid lets you type in code that starts with '#' for cpp directives.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@969 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
(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
Fix for Borland or other platforms where GLint != int.
Fixed browser scrollbars so they work if browser is inside a scroll
(it did not update their position to match where they were drawn)
Fl_Output (and non-focused Fl_Input) now scroll in response to position()
calls from the program to show the position. In addition I cleaned up the
horizontal scrolling of Fl_Input to be less screwy, it now never scrolls
if the text actually fits in the widget.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@959 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
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
determine if we should use the built-in hand cursor instead of up-
arrow...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@936 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
the title bar!)
Now call MessageBeep() under WIN32 for all popups and XBell() for
fl_alert() under X11.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@885 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1. Browser responds to FL_KEYBOARD as well as FL_SHORTCUT. If you subclass
it to accept focus then keyboard navigation will work. I could not do his full
patch as it broke the file chooser's tab completion and perhaps other programs.
2. Fl_Tile and Fl_Tabs do their callback when the user changes their display.
3. Made some of the private methods of Fl_Browser protected.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@879 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
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
that don't have their position specified, the windows appear centered in
the screen, rather than in the top-left corner. This happened with modal
windows under Irix 4Dwm. This also causes windows to be centered when no
window manager is running, which might be useful for installation gui programs?
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@823 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
With all the recent check-ins, the result is that text editing is a
combination of the best parts of "CUA" and X/Motif text editing
(in my opinion). It mostly acts like CUA with these additions:
1. Clicking in a field the first time selects the entire field (this is a
necessary modification so that it works in point-to-type window managers
and still looks like Windoze, in Windoze it appears that all text fields
are switched to all-selected when the window is "activated").
2. The middle mouse button acts like the left one and *then* does "paste".
Unlike Motif you can replace text by selecting it with the middle mouse button.
3. *drag* of the left mouse button does "copy". Unlike Motif, other methods
of selecting text (like double-click) does not do "copy".
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@807 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
loop. I didn't really fix this, but I removed deactivate() from constructors
and replaced with set_flag(INACTIVE). The loop would happen if a widget
responded to FL_MOVE by calling draw_overlay or otherwise creating an
overlay, which is a pretty rare event.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@792 ea41ed52-d2ee-0310-a9c1-e6b18d33e121