Commit Graph

590 Commits

Author SHA1 Message Date
ondrej
a0ccf85be3 LCL: form: scale form with parent. Issue #33002
git-svn-id: trunk@57156 -
2018-01-27 13:21:45 +00:00
juha
93f48e1da6 LCL: Improve giving focus to docked windows from Windows menu. Issue #32659, patch from Pascal Riekenberg.
git-svn-id: trunk@56417 -
2017-11-16 11:19:00 +00:00
ondrej
3d5bee5c9c LCL: form: force scale bounds in WM_DPICHANGED message handler. Issue #32162
git-svn-id: trunk@55530 -
2017-07-18 18:05:44 +00:00
mattias
bd57210a2f lcl: fixed typos
git-svn-id: trunk@55479 -
2017-07-10 12:20:03 +00:00
ondrej
96886b5551 lcl: forms: scale TFrame the same as TForm. Issue #31807
git-svn-id: trunk@54898 -
2017-05-13 20:00:29 +00:00
ondrej
ede8a86d9d lcl: support for DebugDisableAutoSizing compiler define
git-svn-id: trunk@54813 -
2017-05-05 20:42:32 +00:00
ondrej
d40aae2903 lcl: forms: don't check for old value in UpdateShowInTaskBar. Issue #31248, patch by Michl
git-svn-id: trunk@54722 -
2017-04-25 08:14:10 +00:00
ondrej
8537762cb8 LCL: High-DPI: disable/enable auto sizing on scale.
git-svn-id: trunk@54359 -
2017-03-07 13:52:49 +00:00
ondrej
4ba349fd6e LCL: form: fix AutoAdjustLayout if constraints are used. Issue #31336
git-svn-id: trunk@54353 -
2017-03-06 15:34:11 +00:00
michl
62155bcd28 SpartaDockedFormEditor: Fixed always disable actions for controls: Issue #31479
git-svn-id: trunk@54341 -
2017-03-04 13:25:24 +00:00
ondrej
d79fd99a1e LCL: HighDPI: check Application.Scaled for auto-scaling
git-svn-id: trunk@54260 -
2017-02-24 12:07:07 +00:00
ondrej
4a89ed8ec1 LCL: TControl: explicitely scale fonts with 0-height because they cannot be scaled automatically with TFont.PixelsPerInch
git-svn-id: trunk@54216 -
2017-02-21 10:45:27 +00:00
ondrej
592b495a47 LCL: HighDPI: use relative font scaling, not the absolute PPI (fix for r54210 #eb28e06e83). Issue #31276
git-svn-id: trunk@54211 -
2017-02-20 15:04:02 +00:00
ondrej
eb28e06e83 LCL: HighDPI: fix font scaling. Issue #31276
git-svn-id: trunk@54210 -
2017-02-20 13:59:36 +00:00
ondrej
1c7e92643d LCL, IDE: HighDPI: add Application.Scaled and Project1.Scaled property for automatic LCL-driven scaling
git-svn-id: trunk@54199 -
2017-02-19 20:02:58 +00:00
ondrej
df696ddabc LCL: forms: call AutoAdjustLayout in Show if necessary - it doesn't receive LM_DPICHANGED if the form is moved to a different monitor while being invisible.
git-svn-id: trunk@53993 -
2017-01-24 12:12:18 +00:00
michl
b77917bbc2 LCL: TWinControl: refreshing RawImage data after painting on canvas. Issue #25448
git-svn-id: trunk@53790 -
2016-12-27 23:38:54 +00:00
ondrej
8d6fb55c21 lcl: customform: revert r53334 #0a383ad832, issue #31122
git-svn-id: trunk@53716 -
2016-12-18 12:22:07 +00:00
juha
b83fa220bb LCL: Don't require TForm.Handle in afterconstruction when scaling. Issue #31121, patch from Anton Kavalenka.
git-svn-id: trunk@53694 -
2016-12-15 19:47:51 +00:00
ondrej
b7048b98fc lcl: forms: execute AutoScale for Scaled := True only when not loading
git-svn-id: trunk@53693 -
2016-12-15 09:48:38 +00:00
ondrej
8c7043289d lcl: forms: add AutoScale method and execute it when setting Scaled := True
git-svn-id: trunk@53692 -
2016-12-15 09:00:04 +00:00
ondrej
46b5fb7228 lcl: forms: Scale0Fonts in AfterConstruction if MonitorPPI<>ScreenPPI
git-svn-id: trunk@53691 -
2016-12-15 08:57:10 +00:00
ondrej
d770925929 lcl: customform: don't change TopLeft in DoAutoAdjustLayout
git-svn-id: trunk@53690 -
2016-12-15 08:36:22 +00:00
ondrej
172aa765ac lcl: forms: use Monitor.PixelsPerInch for default scaling
git-svn-id: trunk@53689 -
2016-12-15 08:20:18 +00:00
mattias
224ed6f8cb lcl: comment
git-svn-id: trunk@53680 -
2016-12-14 14:28:58 +00:00
ondrej
c2e239e881 lcl: forms: move the DesignTimeDPI and Scaled properties from TForm to TCustomDesignControl - TFrame needs it as well.
git-svn-id: trunk@53622 -
2016-12-09 22:58:54 +00:00
ondrej
7ba71b1ba4 lcl: forms: introduce the LCLScaleForms define for enabling default Scaled=True
git-svn-id: trunk@53608 -
2016-12-09 07:51:42 +00:00
ondrej
f1f10c72f9 lcl, ide: highDPI: make designer DPI-aware
git-svn-id: trunk@53584 -
2016-12-06 21:28:02 +00:00
ondrej
33199744d0 lcl: highDPI: use TCustomDesignControl as ancestor for TFrame and TForm to share PPI properties.
git-svn-id: trunk@53580 -
2016-12-06 19:28:48 +00:00
ondrej
11cc148c2f lcl: highDPI: rename DesignTimeDPI to DesignTimePPI to comply with property <P>ixels<P>er<I>nch
git-svn-id: trunk@53572 -
2016-12-06 13:45:47 +00:00
ondrej
f48f4618a6 lcl: forms: highDPI: set PixelsPerInch to DesignTimeDPI in CreateNew
git-svn-id: trunk@53537 -
2016-12-03 06:47:59 +00:00
ondrej
c94e49018d lcl: forms: use a variable in WMDPIChanged. Issue #31050, by AlexeyT
git-svn-id: trunk@53529 -
2016-12-02 17:03:38 +00:00
ondrej
50b3234603 lcl: forms: highDPI: use the new AScaleFonts parameter in AutoAdjustLayout for automatic scaling.
git-svn-id: trunk@53517 -
2016-12-01 22:44:55 +00:00
ondrej
e5ef90de53 lcl: forms: highDPI: don't clear TCustomForm.PixelsPerInch in CreateWnd, related to r53512 #337925d861
git-svn-id: trunk@53515 -
2016-12-01 22:41:08 +00:00
ondrej
9304766a81 lcl: forms: highDPI: use AutoAdjustLayout instead of ScaleBy for DPI-scaling. Issue #31045, by AlexeyT
git-svn-id: trunk@53513 -
2016-12-01 22:03:27 +00:00
ondrej
337925d861 lcl: forms: highDPI: don't read TCustomForm.PixelsPerInch from Screen but use rather the value from design-time and update it on scale.
git-svn-id: trunk@53512 -
2016-12-01 21:38:39 +00:00
ondrej
2d8600e1fd lcl: forms: allow changing TCustomForm.DesignTimeDPI in runtime. Fix brackets.
git-svn-id: trunk@53511 -
2016-12-01 21:00:24 +00:00
ondrej
2612f8b61e lcl: forms: allow changing TCustomForm.DesignTimeDPI in runtime.
git-svn-id: trunk@53510 -
2016-12-01 20:55:10 +00:00
ondrej
5c4c3d1948 lcl: forma: change wParamhi to hi(wParam), issue #31043
git-svn-id: trunk@53502 -
2016-12-01 00:32:55 +00:00
ondrej
f4df715ad3 lcl: forms: highDPI: ScaleBy only when scale really changed.
git-svn-id: trunk@53501 -
2016-12-01 00:28:15 +00:00
ondrej
1c9c0abeb2 lcl: forms: highDPI: fix FPixelsPerInch assignment in WMDPIChanged (r53498)
git-svn-id: trunk@53500 -
2016-11-30 23:49:40 +00:00
ondrej
2b35575b4e lcl: forms: highDPI: Scale in AfterConstruction when Scaled=true
git-svn-id: trunk@53499 -
2016-11-30 23:47:31 +00:00
ondrej
9d221a90f6 lcl: forms: highDPI: call ScaleBy automatically on LM_DPICHANGED when Scaled=True.
git-svn-id: trunk@53498 -
2016-11-30 23:29:09 +00:00
ondrej
4bccf7cae5 LCL: forms: highDPI: set DesignTimeDPI automatically by the IDE, don't allow to change it manually.
git-svn-id: trunk@53497 -
2016-11-30 23:27:37 +00:00
mattias
0a383ad832 lcl: delay autosize when form is minimized, bug #30826
git-svn-id: trunk@53334 -
2016-11-10 10:21:47 +00:00
bart
e0a1a0b0a2 LCL Fix access violation when deleting a TMainMenu after r53250 #4161b1f5e1. Issue #0030882. Patch by Michl.
git-svn-id: trunk@53306 -
2016-11-07 11:37:56 +00:00
ondrej
4161b1f5e1 LCL: destroy menu handle on remove. Issue #30806, patch by Michl
git-svn-id: trunk@53250 -
2016-10-28 16:43:43 +00:00
ondrej
764c1f97e4 lcl: TCustomForm needs Application.RemoveAsyncCalls, issues #30281 and #8576
git-svn-id: trunk@52764 -
2016-08-01 16:43:28 +00:00
ondrej
92c16d5513 lcl: revert r52377 #a7f5af9c78, it collided with Gtk2 WS code.
git-svn-id: trunk@52380 -
2016-05-24 03:50:42 +00:00
ondrej
a7f5af9c78 lcl: add new form style fsIgnoreMouseEvents. use it instead of windows-specific WM_NCHITTEST=HTTRANSPARENT.
git-svn-id: trunk@52377 -
2016-05-23 21:47:00 +00:00