Commit Graph

11662 Commits

Author SHA1 Message Date
Matthias Melcher
d8eb45531e Fixes menu scrolling for secondary screens (#1060)
- huge menus would scroll down when the mouse pointer hit
position 0, but for some secondary screens, the top edge is
not at y==0, so now we check for a range a the top border of
the working space of the screen showing the menu.
2024-09-04 16:06:29 +02:00
Matthias Melcher
2b1f15084d Fixes menubar glitch when mouse is at y==0 (#1060) 2024-09-04 15:23:22 +02:00
Albrecht Schlosser
b595db30d4 CMake/Windows: enable MSVC runtime DLL option for Clang (#1058)
User @supsm reported that using LLVM/clang to compile together with
the MSVC linker should support the MSVC runtime DLL selection.

This commit enables the option on Windows except MinGW and MSYS
rather than MSVC only.
2024-09-03 11:17:58 +02:00
Matthias Melcher
2afeb6d647 FLUID Fix width of square button 2024-09-02 12:09:47 +02:00
Matthias Melcher
0ee76e5696 FLUID: Improve resizing behavior of properties dialog 2024-09-02 12:08:01 +02:00
Matthias Melcher
2834213815 Reverting false Ctrl Key fix on Windows
- 1ae43956e2
2024-09-02 11:59:36 +02:00
Matthias Melcher
aa6ce6b9f1 Cairo image drawing improvements 2024-09-01 16:11:31 +02:00
Matthias Melcher
634ce805e5 Fixing set_font and image overflow for Cairo. 2024-08-31 23:20:27 +02:00
Matthias Melcher
d51046cdea FLUID: Add Synchronized Resize. #1055 2024-08-31 20:36:34 +02:00
Matthias Melcher
e01c9ff6a0 Linux fixes for previous commit 2024-08-31 19:15:23 +02:00
Matthias Melcher
c8b8eb4b84 FLUID: Fixes grouping and ungrouping, #1056
- grouping a bunch of widgets will now create the new
  group in the expected place
- also add grouping and ungrouping of menu items
- ungrouping now also works with only a few items
  selected instead all items, moving the selection before
  the group
2024-08-31 19:08:18 +02:00
ManoloFLTK
1da9438a1c CMake: replace check_function_exists() with check_symbol_exists() (#1053) 2024-08-31 16:59:03 +02:00
Albrecht Schlosser
dd819a118c macOS: Fix installing partial 'FLTK.framework' (#961)
... which is not a real macOS "Framework".

Note that users building and *installing* FLTK should either install in
a fresh directory or delete the entire 'FLTK.framework' tree if they
are reusing an existing install directory because it will not be
deleted by subsequent installs.
2024-08-30 12:27:08 +02:00
Matthias Melcher
885dbc4198 Removing wrongfully commited code. 2024-08-28 18:43:34 +02:00
ManoloFLTK
b124ac9066 Fix return values of Fl_Printer::begin_job() with GTK dialogs 2024-08-28 17:56:54 +02:00
Albrecht Schlosser
86241ea9b5 Remove single-quotes from fltk-config.in (again)
This commit removes all single-quotes (') that have been added to
support /installing/ FLTK in paths with spaces (see PR #17).
2024-08-28 16:23:32 +02:00
ManoloFLTK
b95a7eccd9 Fix Doxygen problems with fl_draw() functions. 2024-08-28 10:05:17 +02:00
ManoloFLTK
c7417f793f Restore building with option FLTK_USE_POLL 2024-08-27 18:32:47 +02:00
ManoloFLTK
5fae7b36bb Fix Fl_GDI_Graphics_Driver::rect_unscaled() (#1052) 2024-08-27 16:52:20 +02:00
Matthias Melcher
ec05f78d98 Adding horiizonatl and vertical label margin
- sizeof(Fl_Widget) not increased
- label positions can be adjusted
- try it out in test/label app
- full support in FLUD
2024-08-27 15:13:32 +02:00
Matthias Melcher
5879e7fae7 Update comment. 2024-08-27 13:20:04 +02:00
ManoloFLTK
008d71f5b7 Fix for artefact in X11 1-pixel thick rect drawing with some drivers (#156, #1052) 2024-08-26 22:56:27 +02:00
Albrecht Schlosser
9568d5bb73 Display Git revision in docs generated from releases (#499)
- makesrcdist: store Git revision in a file in the tarball
 - CMake/resources.cmake: get git revision either from Git or file and
   store it as CMake cache variable 'FLTK_GIT_REVISION' for reference
 - documentation/*: get git revision from git or file
 - fluid/documentation/*: get git revision from git or file
2024-08-26 20:02:42 +02:00
ManoloFLTK
13f1911624 Implement and document Fl::add_system_handler() for Wayland 2024-08-26 09:38:57 +02:00
ManoloFLTK
6d04ef2caa Fix Fl_GDI_Graphics_Driver::rect_unscaled() (#1052) 2024-08-26 09:22:04 +02:00
ManoloFLTK
01f687e26a Document that Fl::add_system_handler() is not implemented under Wayland 2024-08-25 23:36:48 +02:00
Albrecht Schlosser
67e0547bf9 CMake: replace check_function_exists() for trunc() (#1049)
Part 1: replace the check for trunc() with check_symbol_exists().

Part 2 (to be done): replace all occurrences of the macro
  check_function_exists() with check_symbol_exists() if possible.
2024-08-25 17:51:15 +02:00
ManoloFLTK
fc57a51836 Fix Fl_Wayland_Screen_Driver::compose() to handle the FL_Alt_Gr key 2024-08-25 12:06:59 +02:00
Albrecht Schlosser
9e35b0216f CMake: remove cache consistency check (#1046)
The attempted consistency check to remove FLTK's obsolete cache
variable OPENGL_GLU_INCLUDE_DIR which is used by CMake 3.29+ could
cause false positives, at least on macOS, as reported on issue #1046.

This modified code removes OPENGL_GLU_INCLUDE_DIR if it is defined
but FLTK_OPENGL_GLU_INCLUDE_DIR is not (yet) defined which indicates
the first configure execution with the new code.
2024-08-23 18:00:43 +02:00
Albrecht Schlosser
d6ddc62b33 Fix CTRL/META state display in test/handle_keys.cxx (macOS)
This changes only the display of the mentioned state bits in the test
program, and only on macOS.

Thanks to Manolo for finding and reporting this.
2024-08-23 17:13:15 +02:00
ManoloFLTK
a0a91d4854 More detailed documentation of how Fl::event_state() differs between platforms 2024-08-23 16:25:11 +02:00
Matthias Melcher
1ae43956e2 Quick fix for Window Ctrl charcter handling.
This is needed to allow platform compatibel e_text and e_length, but a lot more work ist needed to unify keyboard
handling
2024-08-23 12:43:21 +02:00
Matthias Melcher
f151ecb87b Changing test/editor Shortcut Key Ctrl-i.
The original choice for split screen editing, Ctrl-2, did not
work well on some platforms.
2024-08-19 12:27:18 +02:00
Albrecht Schlosser
7cb33ea802 Clean up main (root) .gitignore file
- remove obsolete comments
- remove "duplicates": '/out' includes '/out/*' etc.
- reorder so files are correctly categorized to simplify maintenance.
2024-08-18 15:50:48 +02:00
MatthiasWM
c74948f65a Keep VisualStudio 2022 generated fiels out of Git repo 2024-08-18 15:02:57 +02:00
Matthias Melcher
47bf422e42 Ducumentation fix for previous commit 2024-08-18 14:42:21 +02:00
Matthias Melcher
5ad07b7b4b Fix fl_overlay_rect smearing on macOS (#735)
If fl_overlay_rect crosses window bounds, reading the
window contents would fail and restoring the contents
would fail, generating a smear effect.
2024-08-18 14:42:21 +02:00
ManoloFLTK
afc2072878 Fix Doxygen typos in fl_draw() documentation 2024-08-14 18:27:35 +02:00
Matthias Melcher
05c91b287f FLUID: fixing compiler warning 2024-08-14 01:56:22 +02:00
Matthias Melcher
1badb48e71 FLUID: fixing unintialised widget 2024-08-14 01:52:37 +02:00
Matthias Melcher
ede61089be FLUID: add image spacing control 2024-08-14 01:52:37 +02:00
Matthias Melcher
a9e989cc2d Adding image support for angraved and shadow label types 2024-08-14 01:52:37 +02:00
Matthias Melcher
cfc54a3b19 Adding Fl_Widget::label_image_spacing() (#1039)
- May need a better method name.
- This makes the gap between the image in a label and
the label text user settable.
- Can be tested using test/label app
2024-08-14 01:52:37 +02:00
Matthias Melcher
325ac336c7 Adding gap parameter to fl_draw(...)
This allows the user to define the spacing between a
possible imge and the text.
2024-08-14 00:35:55 +02:00
Matthias Melcher
9f04497d6e Improved documentation for fl_draw()
There are no code changes in this commit, only added
documentation and improved formatting.
2024-08-13 20:58:35 +02:00
Greg Ercolano
85d1d904ec Small doc fixes (\See -> \see) 2024-08-12 18:31:05 -07:00
Greg Ercolano
f825fca43c Improve handling of malformed ANSI. (#950) 2024-08-12 18:00:54 -07:00
Albrecht Schlosser
f74f66e507 Re-enable quoting in fltk-config(.in) [fix PR #17]
- add some more missing quotes
- use `eval` to execute the compile/build command.

Tested with both configure/Make and CMake (Ninja) after installing
in a path that contains spaces (Linux only so far).
2024-08-12 17:12:44 +02:00
Matthias Melcher
3922ef67c1 Further accelerating Fl_Text_Display (#596)
This commit adds lazy evaluation for the wrapped line calculation,
making scrolling much more interactive.
2024-08-12 12:22:25 +02:00
Matthias Melcher
2013c4fd67 Adding Fl_Input comments. 2024-08-11 12:11:35 +02:00