summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-09-30Horizontal scrollbar in TextDisplay is not shown if text wrappes at the ↵Matthias Melcher
right edge git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9092 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-30OSX: Fixed screen updates durin DND operationsMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9090 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-30Fixed doxygen comment.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9088 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-30Fix STR#2600 for the MSWindow and Mac OS platforms.Manolo Gouy
A new event FL_SCREEN_CONFIGURATION_CHANGED is introduced. Fl::add_handler() allows to register a callback for this event. The unix/X11 implementation is still missing. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9087 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-29Limit columns to 26 to ensure column labels are only A-Z.Greg Ercolano
(previous value of 30 was creating non-alpha label names..) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9086 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-29Solve Fl_Tree issues w/ STR#2714 (shadow variable issue for apps)Greg Ercolano
by moving code implementations from Fl_Tree.H -> Fl_Tree.cxx. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9085 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-29Fix STR#2695 & 2697: correct computation of work areas with multiple screens.Manolo Gouy
This introduces 3 new functions static void Fl::screen_work_area(X,Y,W,H) static void Fl::screen_work_area(X,Y,W,H,mx,my) static void Fl::screen_work_area(X,Y,W,H,screen_no) that compute screen work areas and are used by FLTK to position menu windows. The Fl::x(),y(),w(),h() functions are made consistent across platforms: they return the origin/size of the work area of the main screen (as far as possible, see below). On the Mac OS platform, all screen functions reflect changes in screen number and positions without requiring the application to restart. On the X11 platform, I did not find an API to compute the main screen work area in all conditions. What's used does compute the correct work area when there's a single screen, but not when there are several, because it returns an area that encompasses all screens. The implemented workaround is that Fl::x(),y(),w(),h() and Fl::screen_work_area(X,Y,W,H,0) return the exact work area when there's a single screen, and return the full screen area when there are several. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9084 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28STR 2708: simple inline hint may reduce executable size quite a lot.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9082 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28STR 2707: nested class and namespace supportMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9080 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28STR 2677: new cursor shape for Fl_Text_DisplayMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9078 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28STR 2710: limited scheme names to known schemes.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9076 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28Mac only: further fine tuning in clipping/rectf needed for scroll demo after ↵Manolo Gouy
changes in r.9050. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9074 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28STR 2673: stop the annoying beeps when opening modal dialogs (this was so '80s)Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9072 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28STR 2711: fixed radio menu button drawing.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9071 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28STR 2711: fitting Menu_Button label text into the part that does not have ↵Matthias Melcher
the pulldown symbol. This does not fix clipping: if a label is too big, it's still ugly (and too big)! git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9070 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28STR 2706: fixed wrong parent() count for Fluid generated Fl_Input_Choice ↵Matthias Melcher
callback code. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9069 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28STR 2684: increased right margin in Fl_Input_ so that a cursor at the end of ↵Matthias Melcher
a line would always be fully visible. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9068 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-27Removed accidental commitMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9067 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-27STR 2702: body of fl_draw_image_mone was missing for one case.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9066 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-27STR #2691: fixed possible invalid text pointer in Text DisplayMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9065 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-27STR 2683: calling show_cursor() before a text buffer is assigned to an ↵Matthias Melcher
Fl_Text_Diisplay deos not crash any longer. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9064 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-22Fixed build problem on Linux.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9060 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-22Mac OS: simplified use of #define MAC_OS_X_VERSION_10_xManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9057 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-22Changed doc of fl_draw() functions to state that strings are UTF-8 encoded ↵Manolo Gouy
and lengths are in bytes. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9055 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-21Use the Fl_Printer and Fl_Native_File_Chooser classes.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9054 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-19Mac OS: simplified use of CGRectMake() for rectangle drawing and clipping on ↵Manolo Gouy
display and printer. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9050 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-16Don't draw the resize window corner under Mac OS X 10.7-Lion.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9039 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-14Added the name of the type of the fl_gc global variable under Mac OS.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9036 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-14Improved how the system-dependent global variable fl_gc is declared Manolo Gouy
with or without declaring the FL_INTERNALS preprocessor variable. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9035 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-13Mac OS: - Correct application hiding when modal or menu window is on.Manolo Gouy
- Removed useless FL_FOCUS events when unhiding application. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9034 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-08Mac OS: print dialog uses only one window instead of two.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9033 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-08Mac OS: center on page the "Print Front Window" application menu command.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9032 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-07Fix trivial documentation discrepancy in Fl_Round_ButtonIan MacArthur
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9031 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-05Keep filter attached to an Fl_Native-File_Chooser after it's closed.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9030 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-04Fixed Mac OS crash when using Fl_Native_File_Chooser with filter that does ↵Manolo Gouy
not end with \n. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9029 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-02Backing out r9025; the correct info is at the top of the document Greg Ercolano
(to use <FL/x.H> instead of define FL_INTERNALS). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9028 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-02Added missing declaration of the fl_find() function.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9027 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-02Before deleting a window, it's better to check whether it contains the ↵Manolo Gouy
currently focused NSView, and unlock focus there. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9026 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-01Mention the need for #define FL_INTERNALS for fl_xid().Greg Ercolano
(STR #2696, http://fltk.org/newsgroups.php?gfltk.development+v:12524) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9025 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-30Fixed fl_pie() drawing too small on X11 (STR #2703)Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9023 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-26Fixed typo.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9016 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-26Updated documentation, removed customized html stylesheet, updated html footer.Albrecht Schlosser
Note: you need Doxygen 1.7.5 or later to generate proper documentation. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9015 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-19Fix window positioning on screen (Fl_X::fake_X_wm()) by testing theAlbrecht Schlosser
entire window area instead of the top left corner only to find the screen to put the window on (Windows only). Note that this *should* be changed to use the work area instead of the screen area, as discussed in fltk.development. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8983 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-18Initial fixes for window position at or beyond (0,0) under win32.Ian MacArthur
This is not the whole story, but is better. We were messing up the initialisation of num_screens on Win32 in that it was being set to a non-zero value by a call to GetSystemMetrics(SM_CMONITORS) but was then subsequently incremented even higher by each iteration call to the screen_cb(...) function, so what we were storing for the screen rectangles was a bit messed up. Under fltk-1.1, the code used to explicitly reset num_screens to zero before starting to iterate the screen_cb(...) function, so that worked OK. I have sort-of restored that behaviour, and removed the (now redundant) call to GetSystemMetrics(SM_CMONITORS) since we *always* enumerate the monitors now to get the per-screen DPI values out. I've also put in a commented out stub where we could store the per-screen work-area, which it seems we do also need now, though I have not yet contrived to actually implement that. Volunteers welcomed... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8981 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-18Fluid -c would destroy the file history every time it was run.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8980 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-08Fix STR #2695 (continued). Use of Fl::x() is appropriate only under Mac OS.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8935 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-08Fix STR #2688. fl_width(' ') was wrong under X11 without XFT.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8930 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-08Fix STR #2695: to scroll menus properly, use Fl::x(),y(),w() and h() ↵Manolo Gouy
functions that return the work area rather than the screen size. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8929 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-05Added missing svn properties to test/rotated_text.cxxAlbrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8915 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-03Add a #warning to scandir.c with the intent of trying to flag up which,Ian MacArthur
if any, hosts actually use this code now. Will only trigger on hosts using gcc though, so may not help at all... This is part of trying to remove this (possibly) not fltk license compliant code from the codebase. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8913 ea41ed52-d2ee-0310-a9c1-e6b18d33e121