Commit Graph

820 Commits

Author SHA1 Message Date
Martin
09e453027f LCL: DPI scaling, fix Anchor=[] with autosize. 2025-07-15 10:46:31 +02:00
Martin
4cca89e05f LCL: Partly rewrite DoAutoAdjustLayout / fix DPI scaling.
- Issue #41736
- Issue #41007 (for alTop + akBottom)
- Added scaling for Anchors=[] (center).
- fixed scaling several times, sometimes changed order of multiple alTop
- Added tests
2025-07-14 22:30:02 +02:00
Juha
986dee38d4 LCL: Add ClassName to an exception message. Issue #41744. 2025-07-06 15:57:34 +03:00
Maxim Ganetsky
a99f5fc2bf LCL: Let TControl.GetDefaultColor for a control with clDefault color return color of its parent.
Improves situation e.g. for background of panels and checkboxes on Gtk2
widgetset on some themes, including Greybird.

Their classes have default color not equal to clDefault, so previously
it was returned without accounting for the state of ParentColor
property.

See merge request !452 and issue #41534.
2025-04-23 22:48:45 +03:00
Martin
9b4c81b56b IDE, DockedFormEditor: Check for csDesignInstance, instead of csDesigning to determine if a form/frame is the top-parent in the designer. (To disable autosizing for them). Issue #41368 2025-01-27 13:09:05 +01:00
Martin
9c9902c1fc LCL: fix DPI scaling for aligned controls with anchor on their free site. Issue #41007 2024-10-05 13:11:35 +02:00
rich2014
53cd3db19c LCL: Fix #40416: Mouse Message issue (Enter/Level/Move) 2023-07-30 21:55:11 +08:00
mattias
2dc7c77293 lcl: clean hostdocksite 2023-07-12 11:35:47 +02:00
Juha
0bc32656ed LazUtils, LCL: Move LCLProc.CompareRect() -> GraphMath.SameRect(). Deprecate LCLProc.CompareRect(). 2023-07-03 16:54:10 +03:00
Juha
c3891ad820 Reduce compiler warnings. 2023-07-03 06:23:49 +03:00
Juha
1475336c8c Remove LCLProc.OffsetRect(). Move some functions from LCLProc to GraphMath (LazUtils). 2023-06-05 15:48:01 +03:00
Ondrej Pokorny
7d00a524a4 TScrollBox: make opaque for ParentColor=False and ParentBackground=False. Issue #40047 2022-12-14 21:49:24 +01:00
Juha
f45f3610f4 LCL: Fix TControl handler methods and arguments. Issue #39974, patch by Don Siders. 2022-11-02 19:46:16 +02: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
Juha
814e4ba4e2 Rename CompareMethods to more logical SameMethod. Remove old deprecated functions. 2021-10-10 19:00:49 +03:00
Juha
865013eeb9 IDE: Remove unused and duplicate resource strings. Fix exception messages. 2021-09-30 17:23:21 +03:00
wp_xyz
95da3f4854 LCL/LCLScaling: Fix ParentFont becoming to false upon scaling. Issue #37299. 2021-09-10 21:05:39 +02:00
dmitry
dff67d134c lcl: update accessibility patch by David Jenkins. bug #38603
git-svn-id: trunk@64834 -
2021-03-18 02:48:41 +00:00
juha
125e794a87 Remove useless test for X <> Nil when using "is" operator.
git-svn-id: trunk@63779 -
2020-08-18 17:35:21 +00:00
juha
efdce59d90 LCL: Optimize component registration and TLCLComponent.NewInstance. Issue #37360, patch from BrunoK.
git-svn-id: trunk@63619 -
2020-07-22 08:34:07 +00:00
ondrej
74fb203f39 LCL: Screen.BeginTempCursor & EndTempCursor
git-svn-id: trunk@62664 -
2020-02-23 06:04:38 +00:00
juha
efcdcd91ab LCL: Update "Accept" flag in TCustomAbstractGroupedEdit.EditDragOver. Optimize. Issue #36685, patch from errno.
git-svn-id: trunk@62630 -
2020-02-14 09:36:14 +00:00
dmitry
8bcb4c3d6f lcl: moving RegisterPropertyToSkip from unit initialization to WSRegisterClass methods
git-svn-id: trunk@62581 -
2020-01-23 15:28:39 +00:00
juha
dcb8bd49fb Designer: Support Undo for properties of subcomponents like 'LabeledEdit1.SubLabel'. Issue #36071.
git-svn-id: trunk@61974 -
2019-10-03 22:58:20 +00:00
michl
ef57dae24f Don't close EvaluateDialog and Debug Inspector when docked
git-svn-id: trunk@60043 -
2019-01-09 14:25:58 +00:00
juha
76789e3c74 LCL: Raise a specialized ELayoutException for LCL layout related errors. Issue #34362, patch from accorp.
git-svn-id: trunk@59274 -
2018-10-09 14:00:34 +00:00
juha
49e55e3acf LCL: Copy TMenuItem's Name to its Caption after renaming if they were identical. TControl does the same already.
git-svn-id: trunk@58938 -
2018-09-10 22:27:49 +00:00
juha
65bf99f425 LCL: Move procedure UpdateAlignIndex from TControl to TWinControl because it deals with its private var FAlignOrder. Suggested by taazz.
git-svn-id: trunk@58449 -
2018-07-06 21:06:59 +00:00
ondrej
0c5181bf67 Revert r58337 and r58339 #e887c43e0d
git-svn-id: trunk@58346 -
2018-06-19 20:04:57 +00:00
ondrej
e887c43e0d LCL: move EditingDone from TControl to TWinControl. It doesn't have a meaning in TControl
git-svn-id: trunk@58339 -
2018-06-19 17:19:34 +00:00
ondrej
f1b3d3f742 LCL: call OnEditingDone (DoEditingDone) only if something changed
git-svn-id: trunk@58337 -
2018-06-19 17:11:31 +00:00
wp
4fd2587322 LCL: Undo r58266 #9602db0b8b (Breaks inner workings of combined components using the OnClick internally and providing access to Actions externally, like in RxViewPanel)
git-svn-id: trunk@58290 -
2018-06-16 12:53:24 +00:00
wp
9602db0b8b LCL: Avoid TAction.OnExecute being fired in addition to TControl.OnClick.
git-svn-id: trunk@58266 -
2018-06-14 10:51:48 +00:00
michl
7da1636ffa LCL: Fixed OnClick event not triggered for a TSpeedButton on a fresh created form when inside a TGroupBox. Issue #26638
git-svn-id: trunk@58237 -
2018-06-12 20:26:25 +00:00
ondrej
640a3ed946 LCL: control: remove unnecessary GetScaledControlClassDefaultSize introduced in r58125 #3ec78f9640
git-svn-id: trunk@58135 -
2018-06-05 07:56:18 +00:00
ondrej
3ec78f9640 LCL: scale control default size when needed. Solves issue #32702
git-svn-id: trunk@58125 -
2018-06-04 15:35:01 +00:00
ondrej
460bcc1dd5 LCL: DoubleBuffered & ParentDoubleBuffered support
git-svn-id: trunk@58097 -
2018-06-03 19:45:05 +00:00
ondrej
4a4c2d9374 LCL:fix scaling of font size set to <>0 in design time. Issue #33132, regression after r56962 #d7f8f5e5f6
git-svn-id: trunk@57265 -
2018-02-06 16:12:49 +00:00
ondrej
557b843294 LCL: high-dpi image list: support retina (for now Cocoa only)
git-svn-id: trunk@57240 -
2018-02-03 22:58:50 +00:00
ondrej
81c4a099c2 LCL: fix regression in autosize after r56947 #9ecac75432. Issue #28654
git-svn-id: trunk@57082 -
2018-01-14 05:24:17 +00:00
ondrej
d7f8f5e5f6 LCL: High-DPI: fix font scaling and design-time scaling. Issues #32882 and #32944
git-svn-id: trunk@56962 -
2018-01-05 08:10:01 +00:00
ondrej
9ecac75432 LCL: fix autosizing for not-aligned controls. Issue #28654
git-svn-id: trunk@56947 -
2018-01-04 06:24:36 +00:00
ondrej
8726ea2759 LCL: revert r50942 #dfebe2190c. Issue #28654
git-svn-id: trunk@56946 -
2018-01-04 06:20:31 +00:00
juha
f79dd3199d LCL: Support horizontal mouse wheel messages. Issue #32753, patch from AlexeyT.
git-svn-id: trunk@56642 -
2017-12-05 21:30:57 +00:00
juha
bdb1578f08 LCL: Make sure NewDockSite is assigned in TContol.Dock.
git-svn-id: trunk@56142 -
2017-10-21 16:30:23 +00:00
juha
b5ccc4c16b LCL: Try to debug invalid position values in TControl.ChangeBounds. Issue #32528.
git-svn-id: trunk@56049 -
2017-10-13 17:49:48 +00:00
michl
caddd12280 LCL: Font: Revert revision 55761 #40755af91a as it breaks per monitor High-DPI scaling.
git-svn-id: trunk@55884 -
2017-09-19 19:54:00 +00:00
michl
0859d8780e LCL: Font: Revert 55841 #83ed3c6a91, it broke returning Font.Height.
git-svn-id: trunk@55845 -
2017-09-12 16:26:59 +00:00
michl
83ed3c6a91 LCL: Font: Fixed set Font.Size in FormCreate cause scaled twice. Issue #31276
git-svn-id: trunk@55841 -
2017-09-11 19:58:32 +00:00