Commit Graph

13413 Commits

Author SHA1 Message Date
Maxim Ganetsky
f20a2c32e4 LCL-Gtk2: Workaround for Gtk2 themed painting issue when excluded cliprects were ignored sometimes.
Makes behavior more consistent with other widgetsets. Issue #41246,
patch by Željan Rikalo.
2024-11-19 16:43:21 +03:00
Željan Rikalo
ad73bdff39 Qt,Qt5,Qt6: implemented themed draw of tabbar base. 2024-11-18 10:26:58 +01:00
Juha
3185572fdf LCL-GTK2: Prevent a crash in OpenBSD, related to tooltips. Issue #41244, patch by Alfred Glänzer. 2024-11-16 10:19:37 +02:00
Juha
5f8eacc23d LCL-GTK2: Fix errors in TCombobox.Text. Issue #28840, patch by Maxim Ganetsky. 2024-11-15 14:34:03 +02:00
Željan Rikalo
a724e2b3a3 Qt6: removed wrong call to QFontMetricsF_horizontalAdvance():integer 2024-11-15 08:16:45 +01:00
Željan Rikalo
e53ab12bac Qt6: new version of C bindings due to added new classes and fixed wrong QFontMetricsF_horizontalAdvance() output. 2024-11-15 08:12:33 +01:00
Željan Rikalo
7bace9858e Qt6: various fixes in bindings. 2024-11-15 08:11:23 +01:00
Željan Rikalo
b915e78b9a Qt6: added QInputMethod and QKeyCombination classes to the C bindings. 2024-11-15 08:09:15 +01:00
Željan Rikalo
9ba7c6e286 Qt5, Qt6: fixed PopupParent = modal form, issue #41241 2024-11-14 13:48:14 +01:00
Maxim Ganetsky
b35ba030b3 LCL-Gtk3: Convert ampersands to underscores and back in captions as needed. Hints from Anton Kavalenka, issue #41220. 2024-11-11 22:46:51 +03:00
Željan Rikalo
c97c2774da Qt5,Qt6: do not send LM_CLICKED if button lost focus after mouse down. issue #41237 2024-11-11 18:07:26 +01:00
rich2014
1c81206a45 Cocoa: remove circle references between CocoaInt and CocoaWSCommon 2024-11-10 11:59:31 +08:00
rich2014
15be94c0ad Cocoa: remove duplicate calls to selectRowIndexesByProgram() in TCocoaTableListView 2024-11-08 23:15:17 +08:00
Željan Rikalo
d37c67876e Qt5, Qt6: small optimization for ExtTextOut when drawing char by char. 2024-11-08 13:08:42 +01:00
rich2014
ebf48ada11 Merge branch 'FixTScrollingWinControlAssumption' into 'main'
Cocoa: Fix code assumption that target is always TScrollingWinControl

See merge request freepascal.org/lazarus/lazarus!378
2024-11-08 11:01:12 +00:00
David Jenkins
f09e844111 Cocoa: Fix code assumption that target is always TScrollingWinControl 2024-11-08 11:01:11 +00:00
Željan Rikalo
54ba042fb2 Gtk2: better recognition of wayland session, do not create dummy frame. 2024-11-08 12:00:28 +01:00
rich2014
0120a8437d Cocoa: fix the missing unit @ 52dc179
but the unit circular reference is reintroduced
2024-11-08 01:11:51 +08:00
David Jenkins
52dc179724 Cocoa: TCocoaWidgetSet.IsWindow should return true for any widget handle and not just TCocoaWindowContent. 2024-11-07 16:47:38 +00:00
rich2014
253c6b1be6 Cocoa: Fixed the issue of calling reloadData in NSTableView triggering OnChange
TListView / TListBox / TCheckListBox
2024-11-08 00:37:49 +08:00
Maxim Ganetsky
7cfcb81528 LCL-Gtk2: Call SetExceptionMask for all CPUs, not only for x86 (thus unify it with other widgetsets). Fixes crashes on AArch64, issue #41188. 2024-11-06 15:35:08 +03:00
rich2014
8a371c283e Cocoa: add event handler to TCocoaConfigApplication, see also !351 2024-11-02 23:13:44 +08:00
David Jenkins
504b330788 Cocoa: Add function to create multi resolution image from an image list. Change TLCLListViewCallback.GetImageFromIndex to use that function 2024-11-01 16:01:55 +00:00
David Jenkins
5d44cb36d6 Cocoa: Rework pattern drawing to avoid calling DrawBitmapPattern and TCocoaBrush.drawPattern after items have been released. 2024-11-01 15:30:47 +00:00
David Jenkins
1b4edd6f41 Cocoa: Add some fixed pitch font checking for the font selector and gdiobjects 2024-11-01 14:39:45 +00:00
David Jenkins
518d08bf18 Cocoa: Pick default fonts directly and not by changing a base value 2024-11-01 13:36:27 +00:00
rich2014
34fbc70c67 Cocoa: improve ComboBox with OwnerDraw (especially TColorBox in Dark) 2024-11-01 18:55:11 +08:00
David Jenkins
33deac51ea Cocoa: Add TCocoaThemeServices.DrawText functionality 2024-11-01 10:06:17 +00:00
rich2014
06c50ab4cc Cocoa: fix leaks in TCocoaCollectionItemView 2024-10-31 21:47:40 +08:00
rich2014
87eb63bc18 Cocoa: add a convenient function to get the NSView corresponding to the NSToolBarItem 2024-10-31 21:29:53 +08:00
rich2014
8f2d7ca2b5 Cocoa: support dynamic menu in Modern Form Style Tool Bar 2024-10-31 21:22:38 +08:00
rich2014
db6685cd02 Cocoa: support keyboard in TCustomComboBox (TCocoaReadOnlyComboBox) 2024-10-30 00:25:44 +08:00
rich2014
a29409bdad Cocoa: simplify popup menu tracking mechanism in TCustomComboBox (TCocoaReadOnlyComboBox) 2024-10-29 22:59:08 +08:00
rich2014
21803721f8 Cocoa: in TCustomComboBox (TCocoaReadOnlyComboBox) with OwnerDraw, fix the issue that popupButton are covered 2024-10-28 23:55:46 +08:00
rich2014
3b1a924a6d Cocoa: fix the width of the drop-down menu is not updated after the size of TCustomComboBox (TCocoaReadOnlyComboBox) is dynamically updated 2024-10-28 22:57:07 +08:00
mattias
6aa633b9c9 lcl: updated makefile 2024-10-25 19:59:10 +02:00
mattias
8da445d514 lcl: cocoa: fixed calling overload 2024-10-25 10:47:22 +02:00
David Jenkins
a3a16bf5b3 Cocoa: cleans up some sloppiness with the way LCLCOCOA creates/interacts with NSTimer... 2024-10-24 13:32:39 +00:00
mattias
4cb56ddc5c lcl: consistent -g -gl 2024-10-24 12:30:13 +02:00
David Jenkins
038a93c1fd Cocoa: Add version of TCocoaContext.TextOut() with float instead of Integer position params 2024-10-24 00:36:38 +00:00
David Jenkins
6fc0212b11 Cocoa: Treat control-left mouse click same as right mouse click to bring up context menu 2024-10-23 16:26:04 +00:00
mattias
6fa805fb47 updated makefiles 2024-10-22 00:31:29 +02:00
David Jenkins
cd0ce9da7e Cocoa: Add NSPointToLCL() and NSSTringToUnicodeString() conversion utilities, and modify CFStringToStr to handle #0 2024-10-20 14:54:46 +00:00
David Jenkins
bc15061ca5 Cocoa: Allow transparency drawing in TLCLCOmmonCallback.DrawBackground for Color == clNone 2024-10-20 11:02:05 +00:00
David Jenkins
50f4381429 Cocoa: Add NSWindow.performWindowDragWithEvent() to definitions in cocoa_extra 2024-10-20 10:54:17 +00:00
rich2014
dabf8fa092 Merge branch 'NSVisualEffectViewConsts' into 'main'
Add NSVisualEffectView consts to cocoa_extra

See merge request freepascal.org/lazarus/lazarus!354
2024-10-20 10:23:58 +00:00
David Jenkins
b8e477568d Cocoa: Add NSVisualEffectView consts to cocoa_extra 2024-10-20 10:23:58 +00:00
rich2014
fafef09827 Cocoa: add AppKitVersion 14 2024-10-20 16:41:05 +08:00
Maxim Ganetsky
10996cdfe2 LCL-Gtk2: guard all gdk_window_get_state(Window) calls with GDK_IS_WINDOW(Window) checks to avoid Gtk2 warnings 2024-10-19 01:38:18 +03:00
rich2014
e77c73fbf8 Cocoa: extract EditMenu common code 2024-10-12 19:00:35 +08:00