Commit Graph

22165 Commits

Author SHA1 Message Date
Ondrej Pokorny
ab324f2524 win32: don't use GWL_ID to store the control pointer because it is truncated to 32bit. Issue #39502 2022-01-19 13:39:21 +01:00
Martin
2ac55d4800 LCL, Win32: Revert defb345dc8 "fix 32 bit truncation of pointers in SetWindowLong/GetWindowLong. Issue #39502"
Add "LCLIntf." prefix for better readability.
2022-01-18 22:43:48 +01:00
Martin
defb345dc8 LCL, Win32: fix 32 bit truncation of pointers in SetWindowLong/GetWindowLong. Issue #39502 2022-01-18 21:08:26 +01:00
Ondrej Pokorny
d74a3b34c5 win32: DoWindowProc: lWinControl <> nil check. Fixues issue #39553 2022-01-17 11:02:39 +01:00
Maxim Ganetsky
0a0b688587 LCL: added const to GetLocalizedFormatDescription function parameters 2022-01-17 00:33:57 +03:00
Maxim Ganetsky
52bb248201 LCL: fixed i18n of graphic file format filter descriptions in file dialogs, improved descriptions themselves, removed unused ones, regenerated translations and updated Russian translation 2022-01-15 04:41:04 +03:00
Željan Rikalo
53cda894a2 Qt,Qt5: fixed font changing of TComboBox editor. issue #39539 2022-01-13 16:27:47 +01:00
Maxim Ganetsky
8e10ed53af Cocoa: LCL scrolling improvements by Zoë Peterson, issue #39477:
1. Better handling of hasPreciseScrollingDeltas and SPI_GETWHEELSCROLLINES.  The scrolling in LCL trunk is much too fast and imprecise.  This improves the feel of things using both a mouse wheel and the touchpad.  I don't like having the 15 for average line height hard coded in it, but I haven't seen any cases where it causes problems.

2. In the case where it sees a scroll in both X and Y directions, it filters it in favor of the last scroll direction.  This makes vertical scrolling documents using the touchpad better, since you're less likely to inadvertently scroll horizontally.

3. Msg.WheelDelta is a SmallInt, so this caps the values to High/Low(SmallInt), rather than the underflow/overflow that occurs currently.  That fixes the issue this bug report specifically is about.
2022-01-09 03:02:47 +03:00
Maxim Ganetsky
ab98595350 Translations: Slovak translation update by LacaK, issue #39536 2022-01-08 03:06:53 +03:00
Ondrej Pokorny
624ef51567 LCL Spin: fix case of Integer/string types 2022-01-06 14:16:30 +01:00
Bart
603fb72945 T(Float)SpinEdit: update the control in EditingDone so that text matches Value. Reported by Jamie in https://forum.lazarus.freepascal.org/index.php/topic,57722.msg429596.html#msg429596 2022-01-05 12:33:17 +01:00
mattias
744d5506fd lcl: TTReeView: skip drawing node text when editing, issue 39507 2021-12-26 18:19:26 +01:00
wp_xyz
6e2454530b LCL: Add properties Hot/Disabled/Pressed/SelectedImageIndex to TBitBtn and TSpeedButton. Issue #33299. 2021-12-26 18:06:53 +01:00
Juha
3e7c23c53c LazBuild: Default to Carbon widgetset on PowerPC. Issue #39293, patch by PascalDragon. 2021-12-26 15:04:30 +02:00
Juha
c71e7356c4 LazBuild: Default to Cocoa widgetset on 64-bit Darwin. Issue #39293, patch by Chris Rorden. 2021-12-25 22:00:28 +02:00
Maxim Ganetsky
7a102468ce LCL: replaced Mac OS X with macOS in resource strings, regenerated translations and updated Russian translation 2021-12-21 01:58:04 +03:00
Ondrej Pokorny
5f9aaa6cab LCL: reformatting according to CodeTools 2021-12-17 10:18:01 +01:00
Ondrej Pokorny
f05922b05d LCL: TControl.ClientToScreen(TRect) overload - Delphi compatibility 2021-12-17 10:16:49 +01:00
wp_xyz
dbf1fef155 TDateEdit: Fix calendar not closing on double-click. Issue #39519, patch by Daniel Rikowski. 2021-12-17 00:24:40 +01:00
wp_xyz
7114800c05 LCL/TCustomGrid, TCustomCheckBoxEx: Add missing Notification method to react on destruction of TitleImageList and Images, respectively. 2021-12-16 14:52:01 +01:00
wp_xyz
6efaae3d24 LCL/TColorBox, TColorListbox: Add missing Notification procedure. Issue #39518. 2021-12-16 14:06:26 +01:00
wp_xyz
285ed6ea0d LCL/TColorButton: Add missing Notification method to prevent crash when assigned ColorDialog is deleted. 2021-12-16 00:37:28 +01:00
Ondrej Pokorny
fdd5721318 LCL: fix case of Integer/Boolean/string types 2021-12-13 10:23:37 +01:00
Ondrej Pokorny
8438ed9d98 Revert "LCL: Add TCustomFrame.CreateParams. Somehow fixes issue #25124."
This reverts commit 20c1e10aca.
2021-11-29 22:05:19 +01:00
Juha
20c1e10aca LCL: Add TCustomFrame.CreateParams. Somehow fixes issue #25124. 2021-11-29 11:26:58 +02:00
Ondrej Pokorny
89162e9c1c LCL: move crScreenCursor to a private const of TScreen so that it isn't used elsewhere 2021-11-26 13:33:48 +01:00
Ondrej Pokorny
d13c67e680 lcl: TForm.ShowModal: override temporary cursors with Screen.Cursor and not crDefault. Issue #39486 2021-11-26 11:23:29 +01:00
Maxim Ganetsky
738e48c6b7 Translations: French translation update by Gilles Vasseur, issue #39487 2021-11-26 03:47:29 +03:00
wp_xyz
0a2c033085 lcl/win32: Revert c5fae8fdd1 (date: 2021/11/20, issue #39472). 2021-11-25 23:57:21 +01:00
wp_xyz
2e7022648b LCL: Add missing dialog shield icon (by Roland Hahn). 2021-11-20 11:29:39 +01:00
wp_xyz
c5fae8fdd1 lcl/win32: Fix of disappearing underline of CourierNew text for some font sizes. Issue #39472. 2021-11-20 10:35:09 +01:00
wp_xyz
5438db7700 LCL: Give access to dialog icon idDialogShield 2021-11-19 23:34:09 +01:00
wp_xyz
c226141ca4 LCL/images: New high-dpi aware dialog images by Roland Hahn. 2021-11-19 23:05:17 +01:00
Ondrej Pokorny
20009b685b win32: use a WindowPosChanging hack in SetBounds to prevent Windows to change the LCL position (replaces c5c2329f). Issue #39479 2021-11-19 20:49:18 +01:00
Ondrej Pokorny
89cd2a1045 win32: fix setting TMenuItem.Visible := True in the top menu bar. Issue #39458 2021-11-19 16:56:10 +01:00
Ondrej Pokorny
c5c2329f62 win32: use SetWindowPlacement in SetBounds instead of SetWindowPos. Issue #39479 2021-11-19 15:50:41 +01:00
Ondrej Pokorny
5f82f6ba31 TCustomForm: MakeFullyVisible should use WorkAreaRect as default (sensible and also Delphi-compatible) 2021-11-19 15:17:18 +01:00
Ondrej Pokorny
cbafa07331 TCustomForm: rewrite MoveToDefaultPosition and fix regression after 5d1e0bb8e9 2021-11-19 15:17:18 +01:00
Ondrej Pokorny
c187dc8f26 Fix warning 2021-11-19 15:17:18 +01:00
Ondrej Pokorny
677b96455e TButtonPanel.DefaultButton: no default button support 2021-11-18 18:31:13 +01:00
Ondrej Pokorny
28a1fe7da8 grids: eat escape key only if handled by the editor 2021-11-18 15:13:56 +01:00
Juha
4b12f85ede LCL: Publish TDBEdit.TextHint. Issue #39470. 2021-11-17 18:45:16 +02:00
Patriccollu
dda3cc7c81 Translations: addied LCL Corsican translation
Merge request freepascal.org/lazarus/lazarus!47
2021-11-17 01:05:57 +03:00
Sven Barth
53fe133e43 * for FPC 3.2.3 and newer alias GraphType.TGraphicsColor to System.UITypes.TColor, Graphics.PColor to System.UITypes.PColor and LCLType.COLORREF to System.UITypes.TColorRef to avoid type conflicts when both System.UITypes and the LCL units are used
Merge request freepascal.org/lazarus/lazarus!46 with minor change (enabled aliasing for FPC 3.2.3 too).
2021-11-16 00:27:36 +03:00
Juha
43da8c5047 LCL-fpGUI: Fix compilation. Issue #39354, patch by Peter Blackman. 2021-11-10 20:42:26 +02:00
mattias
6221e1c546 lcl: THintWindow: made some protected methods virtual 2021-11-09 15:00:41 +01:00
Željan Rikalo
d43d4618e4 Qt,Qt5: fixed OnCloseUp event for TDBCustomComboBox. issue #39455 2021-11-08 15:08:07 +01:00
Roland Hahn
5aee9d5c07 Aktualisieren lcl/include/bitbtn.inc 2021-11-07 10:26:45 +00:00
Juha
da5bd4801c LCL-GTK3: Prevent crash in SaveDialog creation. For some reason virtual class functions confused it. 2021-11-06 03:20:16 +02:00
Juha
0d20c53cd4 LCL-GTK3: Prevent crash when Open/SaveDialog is closed. Remove 'destroy' signal handler. Still no memory leaks. 2021-11-06 03:20:16 +02:00