Commit Graph

13384 Commits

Author SHA1 Message Date
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
rich2014
1259df9b51 Cocoa: add TCocoaConfigAppMenu.onCreate for custom 2024-10-12 19:00:14 +08:00
mattias
b977977c8d set main version to 4.99 2024-10-05 22:03:23 +02:00
rich2014
96b5fe52c4 Revert "Cocoa: fix memory leak in LegacyScroller #41171"
This reverts commit 4362298ebd.
2024-10-05 01:19:37 +08:00
rich2014
4362298ebd Cocoa: fix memory leak in LegacyScroller #41171 2024-10-05 00:03:37 +08:00
rich2014
e9baea68d1 Cocoq: release two global variables issue #41170 2024-10-04 22:22:32 +08:00
rich2014
dfce0d15a4 Cocoa: add AppKitVersion 12 and 13 2024-10-04 13:45:50 +08:00
Željan Rikalo
ff4b8a53ac Qt5, Qt6: better handling of modal windows for gtk based window managers (cinnamon, metacity, xfwm4). 2024-10-03 14:01:46 +02:00
Željan Rikalo
91fe3cc4bc Qt5, Qt6: removed unused code. 2024-10-03 11:46:56 +02:00
Željan Rikalo
7be8c31b7b Qt6: remove unused code. 2024-10-03 11:43:49 +02:00
Željan Rikalo
bf3bf9d897 Qt5, Qt6: do not use FocusChangedHook by default, use EventFilter since events are in correct order with qt5 and qt6 2024-10-03 11:42:36 +02:00
Željan Rikalo
f528ace9dc Qt5, Qt6: simplified code, use GetTextExtentExPoint from lclintf implementation. 2024-10-02 13:05:27 +02:00
mattias
da15e4ef07 lcl gtk2: AppRemoveStayOnTopFlags: ignore active window only if geometry is odd 2024-10-02 09:26:43 +02:00
mattias
e44a70d872 lcl: gtk2: do not restack against a non form gdk window, issue #41041 2024-09-29 22:09:20 +02:00
rich2014
a84526b848 Cocoa: fix an issue related to TListBox.ScrollWidth
if column.ResizingMask is set when column.Width < TableView.Width, it is not only meaningless, but also causes problems in the vertical direction of the TableView.

we can scroll the TableView until the last row appears at the top.

it is not clear whether this is a feature of Cocoa or a bug.
2024-09-27 20:33:19 +08:00
rich2014
5ca013e686 Cocoa/Theme: improve on 60f7e4e 2024-09-25 20:01:26 +08:00
rich2014
4696c84166 Cocoa: fix the issue that item state not set before TListView.OnChange() calling, issue #41151 2024-09-25 00:40:50 +08:00
rich2014
e60a16cda5 Cocoa: add NSSTR_ATTACHMENT_CHARACTER to CocoaConst 2024-09-23 20:48:00 +08:00
rich2014
60f7e4e9eb Cocoa/Theme: fix themed button/checkbox issue #41150 2024-09-23 20:47:29 +08:00
Martin
906384cc9d Add deprecated for old names. More fixes. 2024-09-23 12:44:32 +02:00
rich2014
a814cbd968 Cocoa: fix the issue that TListView.OnChange() not fired, issue #41151 2024-09-22 22:43:02 +08:00
rich2014
bd23ffc080 Cocoa/ListView: improve callback clear 2024-09-19 20:52:27 +08:00
rich2014
7010173b69 Cocoa: add util NSControlMoveCaretToTheEnd() 2024-09-19 20:52:26 +08:00
rich2014
e5159ea7a2 cocoa: fix some legacy transparent icon format issues #41131
there are two transparent formats:
1. the one with alpha channel like modern graphic formats (supported previously)
2. the other historical legacy with extra 1bit/pixel MaskBitmap (fixed this time), scaled mask supported also.
2024-09-17 21:02:26 +08:00
rich2014
f27ab84322 Cocoa/ListView: Try to fix the crash caused by Cocoa internal parameter exception during NSTableView initialization on macOS 10.14, #41133 2024-09-17 09:35:16 +08:00
Maxim Ganetsky
c9260ad82c LCL-Gtk2: Do not reset IM after mouse click, otherwise the composition with pre-existing string will be broken. Patch by rasberryrabbit, issue #41123. 2024-09-16 19:03:04 +03:00
rich2014
f8ef2a93e6 Cocoa/ListView: in vsReport, support tips to expand and display text when the column is too narrow 2024-09-15 23:44:51 +08:00
rich2014
937d3a121b Cocoa: fix transparent image drawing , issue #41131 2024-09-15 11:18:42 +08:00
rich2014
6d019de770 Cocoa: add config to control TPanel's frame3d drawing mode #40545 2024-09-13 21:20:11 +08:00
rich2014
27a65f155f Cocoa: TextFieldSetTextHint() improved 2024-09-13 21:19:50 +08:00