Commit Graph

692 Commits

Author SHA1 Message Date
ondrej
99922e83ea clean up
git-svn-id: trunk@55735 -
2017-08-22 07:08:28 +00:00
ondrej
380e645438 LCL: remove deprecated methods and properties (that were tagged to be removed in 1.9)
git-svn-id: trunk@55713 -
2017-08-20 10:25:04 +00:00
ondrej
9fc42932fb lcl: hint window: move paint to protected
git-svn-id: trunk@55602 -
2017-07-30 08:40:28 +00:00
ondrej
de2663825e lcl: forms: rename OffsetHintRect parameter NewPos->AOffset to make it clearer
git-svn-id: trunk@55166 -
2017-06-02 20:08:33 +00:00
ondrej
cd76f09f06 LCL: hintwindow: add parameter to shrink window size on OffsetRect.
git-svn-id: trunk@55141 -
2017-06-01 11:40:50 +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
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
mattias
bd694b92c0 lcl: added ifdef to let fpdoc parse through
git-svn-id: trunk@54521 -
2017-04-04 21:18:10 +00:00
juha
0942c356a3 LCL: Publish TForm.OnConstrainedResize. Issue #31592, patch from AlexeyT.
git-svn-id: trunk@54483 -
2017-03-26 10:39:53 +00:00
juha
93da17aa07 LCL: Refactoring, combine identical code in TScreen to a function.
git-svn-id: trunk@54465 -
2017-03-22 17:17:21 +00:00
ondrej
43f6f51029 lcl: forms: add GetParentDesignControl
git-svn-id: trunk@54433 -
2017-03-17 18:39:19 +00:00
ondrej
134d8be1e9 LCL: hint window: fix default (theme) font after r54293 #2bac2f4e5a
git-svn-id: trunk@54304 -
2017-02-28 09:10:14 +00:00
ondrej
eeff7db7c3 LCL: rename DPI parameters to PPI
git-svn-id: trunk@54218 -
2017-02-21 10:56:42 +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
juha
73aa9aa4bb Order uses sections again to see dependencies better.
git-svn-id: trunk@53738 -
2016-12-20 16:26:44 +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
d770925929 lcl: customform: don't change TopLeft in DoAutoAdjustLayout
git-svn-id: trunk@53690 -
2016-12-15 08:36:22 +00:00
ondrej
9ec0b84232 lcl: add TMonitor.PixelsPerInch
git-svn-id: trunk@53687 -
2016-12-15 08:18:10 +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
a8d1a4e375 lcl: forms: set PixelsPerInch to DesignTimePPI in Loaded to correctly scale forms designed on highDPI displays.
git-svn-id: trunk@53609 -
2016-12-09 08:21:25 +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
e7b8a7cf27 lcl: highDPI: rename AScaleFonts parameter to AScale0Fonts and change its behavior. Issue #31083
git-svn-id: trunk@53594 -
2016-12-07 22:22:50 +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
38e6533972 lcl: forms: highDPI: Implement TFrame.PixelsPerInch
git-svn-id: trunk@53536 -
2016-12-03 06:47:02 +00:00
ondrej
219391b44a lcl: forms: set TForm.DesignTimeDPI default value
git-svn-id: trunk@53534 -
2016-12-02 23:10:31 +00:00
ondrej
bef77cd46b lcl: forms: implement TFrame.DesignTimeDPI
git-svn-id: trunk@53533 -
2016-12-02 23:09:42 +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
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
ondrej
9b0d88e504 LCL: forms: add scaled property. Issue #27075
git-svn-id: trunk@53495 -
2016-11-30 23:24:09 +00:00
ondrej
6f5fa419e8 lcl: change OnExceptionCircle to OnCircularException, remove handler list.
git-svn-id: trunk@52730 -
2016-07-20 18:01:57 +00:00
ondrej
6fb78bd5f9 lcl: application: add handlers to exception circle.
git-svn-id: trunk@52713 -
2016-07-19 06:10:56 +00:00
ondrej
69fd011685 lcl: hint window: render user-defined font.
git-svn-id: trunk@52383 -
2016-05-24 18:36: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
ondrej
4c522305c1 lcl: THintWindow: public mouse messages
git-svn-id: trunk@52361 -
2016-05-23 15:24:23 +00:00
ondrej
e9c686e804 win32: forward unhandled mousewheel messages to parent in order to support scrolling when mouse cursor is on child wincontrol.
git-svn-id: trunk@52045 -
2016-03-24 15:24:14 +00:00
juha
33013ddac8 LCL: Don't set Parent for a standalone form. Issue #18710, patch from cobines.
git-svn-id: trunk@51974 -
2016-03-17 10:52:19 +00:00
juha
565dc69ebc LCL: Implement function KeyboardStateToShiftState. Issue #29358, patch from Alexey Torgashin.
git-svn-id: trunk@51906 -
2016-03-10 18:03:23 +00:00
ondrej
c108514394 lcl: remove/restore stay-on-top windows in Application ModalStarted/ModalFinished, fix default methods with a counter. Issue #27148
git-svn-id: trunk@51812 -
2016-03-03 10:09:52 +00:00
ondrej
2c0c39f762 lcl: use active form as parent for pmNone and modal windows. Issue #29635
git-svn-id: trunk@51597 -
2016-02-11 11:52:45 +00:00
ondrej
03766b3e7f lcl: use ssDouble, ssTriple and ssQuad in MouseUp handlers
git-svn-id: trunk@51570 -
2016-02-10 15:35:03 +00:00
juha
db51e758b5 Cleanup and comments
git-svn-id: trunk@51470 -
2016-02-01 21:04:59 +00:00
ondrej
eecbb6f2ed lcl: fix wrong scrollbar height calculation
git-svn-id: trunk@51460 -
2016-01-30 19:31:46 +00:00
ondrej
b69d0962f6 designer: forward unhandled keys from designer to OI. Issue #29488
git-svn-id: trunk@51398 -
2016-01-24 10:58:59 +00:00
mattias
16ca8935b5 lcl: added SM_LCLHasFormAlphaBlend to GetSystemMetrics, added OnDrawDockImage, when widgetset supports alphablend use a transparent hint window for dock (preview) image, patch #29426
git-svn-id: trunk@51340 -
2016-01-19 17:15:03 +00:00
ondrej
0ba709770d lcl, designer: add and use GetDesignerForm
git-svn-id: trunk@51133 -
2016-01-02 18:20:54 +00:00
ondrej
f42e7fcc66 lcl: forms: add TPosition.poWorkAreaCenter
git-svn-id: trunk@51112 -
2016-01-02 09:33:40 +00:00
ondrej
81733b2e74 lcl: rewrite PopupMode/PopupParent
- unify code for PopupMode/PopupParent in one function TCustomForm.GetRealPopupParent for all WS.
- change TWSCustomFormClass.SetPopupParent to TWSCustomFormClass.SetRealPopupParent without PopupMode parameter.
- Fix TPopupMode documentation.
Issue #29247

git-svn-id: trunk@51032 -
2015-12-25 15:37:10 +00:00
juha
08f907306b LCL: Allow overriding resource loading in TCustomForm. Issue #20358, patch from Anton Kavalenka.
git-svn-id: trunk@50911 -
2015-12-18 19:06:14 +00:00
ondrej
916bee86f8 LCL: support VertScrollBar.Increment by scrollingwincontrol on Windows
git-svn-id: trunk@50527 -
2015-11-29 22:21:49 +00:00
juha
72b8d27401 LCL: Improve Memo.ScrollBy for Windows widgetset. Patch by Ondrej.
git-svn-id: trunk@50525 -
2015-11-29 20:57:15 +00:00
juha
6bb18f6fbd LCL: Implement TCustomMemo.ScrollBy. Refactor widgetset ScrollBy from ScrollingWinControl to WinControl. Solves issue #29067.
git-svn-id: trunk@50523 -
2015-11-29 18:45:53 +00:00
juha
8c4e943410 LCL: Isolate setting the control's position from TControlScrollBar.SetPosition. A half-baked attempt to fix #29067.
git-svn-id: trunk@50479 -
2015-11-23 14:15:37 +00:00
juha
79dcb7831b LCL: Bug fix for QT painting non-visual components for TFakeNonControl design form (TDataModule and TFrame). From Maciej.
git-svn-id: trunk@50418 -
2015-11-19 13:55:33 +00:00
ondrej
dbb4fc55c3 LCL: added TScrollingWinControl.ScrollInView
git-svn-id: trunk@50355 -
2015-11-17 10:18:26 +00:00
sekelsenmat
6621c5c9ce cocoa: Fixes modalresult
git-svn-id: trunk@49724 -
2015-08-29 06:16:44 +00:00
juha
06ac76f560 LazUtils, unit FileUtil: Disable conditionally LazUtf8 and LazFileUtils wrapper functions. For testing define NoLazUTF8Wrappers and build Lazarus.
git-svn-id: trunk@49494 -
2015-07-04 23:08:00 +00:00
juha
8bbae227d3 LCL: Fix Initial value for Application.BidiMode. Issue #22044, (modified) patch Denis Kozlov
git-svn-id: trunk@49346 -
2015-06-16 11:32:35 +00:00
juha
5d0a5d2225 LCL: Move message handlers in TCustomForm to protected section. Allows calling them from handlers in derived classes. Issue #28184, patch from Ondrej Pokorny.
git-svn-id: trunk@49191 -
2015-05-27 13:07:16 +00:00
mattias
d51fa72c40 LCL: re-added CalculateAutoRanges for custom controls
git-svn-id: trunk@48626 -
2015-04-04 21:49:29 +00:00
mattias
35e6eea991 lcl: TScrollingWinControl: fixed computing Range independent of visibility of scrollbars, removed CalculateAutoRanges
git-svn-id: trunk@48624 -
2015-04-04 21:09:22 +00:00
juha
0d06d0a109 LCL: Extra check for Nil in GetParentForm.
git-svn-id: trunk@48605 -
2015-04-03 07:29:04 +00:00
juha
09da89b659 LCL: Remove earlier stupid code made by myself.
git-svn-id: trunk@47929 -
2015-02-21 00:19:48 +00:00
mattias
732401b881 LCL: MessageBox: default parameter Flags = MB_OK, bug #27510
git-svn-id: trunk@47926 -
2015-02-20 22:38:49 +00:00
mattias
094fd462f5 LCL: TScrollingWincontrol: GetLogicalClientRect: independent of AutoScroll to avoid cycle, GetPreferredSize: independent of AutoScroll, added extra checks if LCL clientrect is not in sync with widgetset, improved debugging preferredsize
git-svn-id: trunk@47873 -
2015-02-17 23:58:41 +00:00
juha
d3f974713b LCL: Implement THintWindow.IsMsgHint. Issue #23076.
git-svn-id: trunk@46695 -
2014-10-28 16:58:57 +00:00
jesus
4101822a9d LCL, fixed typo in TApplicationProperties field
git-svn-id: trunk@46582 -
2014-10-17 19:17:49 +00:00
mattias
1e47e9786a lcl: clean up
git-svn-id: trunk@46577 -
2014-10-17 11:36:10 +00:00
jesus
a820e5a564 LCL, implements application.ExceptionDialog property as an option to choose what kind of exception dialog handler the user wants: a simple message box or dialog with ok/cancel button, issue #23243
git-svn-id: trunk@46574 -
2014-10-17 02:42:48 +00:00
juha
60403bcd03 THintWindow: Draw hint windows in editor and elsewhere closer to cursor. Y-offset 30 -> 15.
git-svn-id: trunk@46302 -
2014-09-23 19:48:47 +00:00
juha
d186f4212a LCL: Fix window RestoredLeft/Top values. Issue #8576, patch from Yuichiro Takahashi.
git-svn-id: trunk@46292 -
2014-09-22 17:19:14 +00:00
bart
dc8bcb7190 LCL: Implement ValidParentForm function (Delphi compatibility)
git-svn-id: trunk@46048 -
2014-08-17 10:12:28 +00:00
bart
f3e358caff LCL: Implement optional parameter TopForm: Boolean, for GetParentForm (Delphi compatibility)
git-svn-id: trunk@46047 -
2014-08-17 10:03:28 +00:00
juha
b189500498 LCL: Revert some of THintWindow changes because of Delphi compatibility. Issue #26516
git-svn-id: trunk@45973 -
2014-07-25 16:56:19 +00:00
juha
ba96b04000 IdeIntf: use 2 hint windows in THintWindowManager, one for text and one for rendered HTML.
git-svn-id: trunk@45938 -
2014-07-20 18:27:21 +00:00
juha
24ce977ee8 LCL, SynEdit: improve THintWindow methods. Fixes code completion offset problem, issue #26509
git-svn-id: trunk@45937 -
2014-07-20 18:26:37 +00:00
juha
39ed58f021 IdeIntf: new THintWindowManager to encapsulate hint stuff. Fix THintWindow when it has a sub-control. Make code browser use the new feature.
git-svn-id: trunk@45827 -
2014-07-11 16:31:06 +00:00
juha
2f1bc3998e Remove Designer dependency from SourceFileManager.
git-svn-id: trunk@45783 -
2014-07-05 10:49:22 +00:00
mattias
6e9e77ecd4 LCL: comment
git-svn-id: trunk@45330 -
2014-06-04 06:29:30 +00:00
mattias
59516fe2c8 LCL: fixed TScrollingWinControl.AutoScroll endless loop when one scrollbars needs to be shown because of the other
git-svn-id: trunk@45082 -
2014-05-18 17:01:29 +00:00
juha
b89396a14d LCL: ScrollingWinControl Resizing. Issue #25859, patch from ocean.
git-svn-id: trunk@44452 -
2014-03-16 23:03:26 +00:00
paul
f182409b90 lcl: move cursors from Lazarus to FPC resources
git-svn-id: trunk@42961 -
2013-09-27 03:19:05 +00:00
juha
03c1d319be LCL: Make TWinControl.GetChildren and overridden methods public. Issue #24974, patch from Stephano.
git-svn-id: trunk@42775 -
2013-09-13 18:44:16 +00:00
mattias
c50737c1d3 LCL: fixed GetDesignerForm outside IDE
git-svn-id: trunk@42711 -
2013-09-10 08:58:04 +00:00
paul
ccc3d51ef0 lcl: introduce TCustomForm.Resize for compatibility with VCL, move window state change logic there
git-svn-id: trunk@42100 -
2013-07-16 07:14:06 +00:00
paul
4910e314df lcl: fix position of poDesktopCenter forms when desktop Left,Top <> (0,0)
git-svn-id: trunk@42098 -
2013-07-16 03:38:31 +00:00
paul
35fbbe9c73 lcl: make TScreen.UpdateMonitors public as suggested in (issue #0022499)
git-svn-id: trunk@41676 -
2013-06-11 06:57:18 +00:00
paul
951d803183 lcl, win32: use GetTextExtent as suggested in MSDN to get the correct text bounds before use of DrawThemeText() (issue #0021964)
git-svn-id: trunk@41646 -
2013-06-10 05:58:07 +00:00
paul
aab787525a lcl: reset hint window region when color is changed to non-default
git-svn-id: trunk@41502 -
2013-06-03 02:22:33 +00:00
juha
7b162087fd Improve license headers in sources, part 1. Refer to details about license, not copyright. Remove jargon about lack of warranty, it is covered in license already.
git-svn-id: trunk@41387 -
2013-05-24 18:30:06 +00:00
juha
665538169c LCL: Support Destroy event in TFormPropertyStorage class. Issue #22204, patch from Cyrax
git-svn-id: trunk@40911 -
2013-04-28 17:55:08 +00:00
bart
f85cc1c351 Implement TApplication.IsRightToLeft (Reason: Delphi compatibility).
git-svn-id: trunk@40155 -
2013-02-03 12:03:49 +00:00
mattias
fce82b284a LCL: TScreen.AddHandlerFormAdded+AddHandlerRemoveForm+AddHandlerActiveControlChanged+AddHandlerActiveFormChanged+AddHandlerFormVisibleChanged: changed default AsFirst to false for consistency
git-svn-id: trunk@39785 -
2013-01-06 19:01:28 +00:00
mattias
31e711a9a4 LCL: TCustomForm.AddHandlerFirstShow+AddHandlerClose+AddHandlerCreate: changed default AsFirst to false for consistency
git-svn-id: trunk@39784 -
2013-01-06 19:00:14 +00:00
mattias
3bfe2eecf6 lcl: TCustomForm.UpdateDockCaption: fixed repair garbage
git-svn-id: trunk@37461 -
2012-05-30 08:01:43 +00:00