Commit Graph

209 Commits

Author SHA1 Message Date
Juha
41adb276bb Remove obsolete checks for FPC versions earlier then 3.0. 2023-07-07 17:39:02 +03:00
Juha
c3891ad820 Reduce compiler warnings. 2023-07-03 06:23:49 +03:00
wp_xyz
c0946573ce LCL/TCanvas: Switch x and y loops in TCanvas.BrushCopy. Patch by lagprogramming, https://forum.lazarus.freepascal.org/index.php/topic,62996.msg476742.html 2023-04-10 23:52:26 +02:00
Juha
79fadc1fa5 LCL: Remove an unused Rect from TCanvas.TextExtent. Suggested by lagprogramming. 2023-03-11 17:10:32 +02:00
Juha
9822443fd6 LCL: Require Handle in TCanvas.GetClipRect. Issue #40114, patch by nanobit. 2023-03-11 16:17:06 +02:00
wp_xyz
1799775107 LCL/Graphics: Avoid separate calculation of sin and cos in AngleArc(). Issue #39983. 2022-11-02 12:38:12 +01:00
wp
bc73c3cae4 Graphics: Fix misleading parameter names in comment headers of TCanvas.Arc and .RadialPie
git-svn-id: trunk@63262 -
2020-06-01 21:32:57 +00:00
wp
07e7174b8d LCL: Fix Delphi compatibility of PolyBezier (default value of Continuous argument). Issue #36442, patch by CudaText man).
git-svn-id: trunk@62404 -
2019-12-15 22:55:36 +00:00
juha
8438d57672 LCL: Use font name 'default' if it was empty. Issue #33809.
git-svn-id: trunk@61344 -
2019-06-09 08:30:59 +00:00
michl
ec8f0f7ed0 LCL: Fixed Canvas.TextExtend if system font is used for drawing. Issue #32319
git-svn-id: trunk@55757 -
2017-08-30 07:56:35 +00:00
wp
c331f49f7e LCL: fix TCanvas.TextRect clipping at boundaries of provided rect (issue #0031673)
git-svn-id: trunk@54629 -
2017-04-18 15:43:38 +00:00
zeljko
dc36528c42 LCL: Implemented ETO_RTLREADING for TCanvas.TextOut(). issue #30514
git-svn-id: trunk@53825 -
2017-01-01 12:04:11 +00:00
mattias
f0fa6bf014 LCL: use TSize instead of tagSize, bug #29012
git-svn-id: trunk@50374 -
2015-11-17 21:45:55 +00:00
vincents
7344e5ccb5 LCL: Setting a pixel on a canvas needs a valid pen too. Fixes issue #20614
git-svn-id: trunk@46324 -
2014-09-25 13:56:15 +00:00
juha
8f5585fed4 LCL: Improve ArcTo. Issue #26758, patch from ocean.
git-svn-id: trunk@46277 -
2014-09-21 18:39:46 +00:00
juha
27f7ed9453 LCL: Implement TCanvas.AngleArc. Issue #7290, patch from ocean.
git-svn-id: trunk@46262 -
2014-09-20 08:37:15 +00:00
juha
97c1246eea LCL: Add ArcTo function to TCanvas class. Issue #7230, patch from Howard Page-Clark
git-svn-id: trunk@46246 -
2014-09-17 16:30:32 +00:00
mattias
76b41ca24f LCL: clean up
git-svn-id: trunk@45198 -
2014-05-27 13:27:55 +00:00
martin
8e624b03d2 Compile with 2.6.0
git-svn-id: trunk@42788 -
2013-09-14 00:14:52 +00:00
paul
857774a646 lcl: there is no need to check something for nil before .Free call
git-svn-id: trunk@42710 -
2013-09-10 08:33:48 +00:00
zeljko
93b81bdd04 LCL: workaround for fpc leak with FClipRegion (missing free in destructor).issue #24980
git-svn-id: trunk@42692 -
2013-09-09 06:25:16 +00:00
juha
ecd140c985 Improve license headers in sources, part 2. Refer to details about license, not copyright. Remove jargon about lack of warranty, it is covered in license already.
git-svn-id: trunk@41389 -
2013-05-25 09:22:25 +00:00
jesus
917dea9ca0 LCL, update canvas state after Font, Brush and Pen handle creation so this functions can be overriden and yet the state would be correctly reflected
git-svn-id: trunk@40878 -
2013-04-22 14:49:44 +00:00
mattias
c86922a811 LCL: implemented TCanvas.DoPolyBezier
git-svn-id: trunk@40530 -
2013-03-12 00:43:26 +00:00
paul
880401dbb8 lcl: remove ver2_2_x defines
git-svn-id: trunk@36368 -
2012-03-27 07:16:11 +00:00
sekelsenmat
eed2fffb55 Implements TCanvas.BrushCopy, adds a test to it in the canvas tests and also adds full CopyMode tests there
git-svn-id: trunk@35134 -
2012-02-04 18:46:34 +00:00
sekelsenmat
89dd7c918b Fixes bug #20195: Removes LCLIntf.Frame in favor of a cross-platform implementation for TCanvas.Frame
git-svn-id: trunk@34379 -
2011-12-24 10:52:33 +00:00
jesus
f87c768ab5 LCL, implements EndEllipsis text style (windows) and use it for showing ... in grid cells, also implements cell hints in dbgrid, from wp, issue #20777
git-svn-id: trunk@34018 -
2011-12-07 06:03:34 +00:00
sekelsenmat
2ce733728d Introduces TCanvas.TextFitInfo and implements LCLIntf.GetTextExtentExPoint for Win32
git-svn-id: trunk@33215 -
2011-11-02 11:11:28 +00:00
paul
0ac2f35d4e lcl: move WN_NCHITTEST handling of THintWindow into LCL to allow overriding (issue #0019594)
git-svn-id: trunk@31468 -
2011-06-30 06:30:12 +00:00
juha
6e67aa98e8 LCL: Implemented TCanvas.Frame3D with Delphi compatible parameter signature + a wrapper func. Patch by Stephano, issue #8328
git-svn-id: trunk@30305 -
2011-04-16 09:55:42 +00:00
paul
3aace13834 lcl: fix TColor -> TColorRef assignments and vice versa
git-svn-id: trunk@29713 -
2011-03-03 08:35:06 +00:00
vincents
f181c9db90 lcl: don't use DT_INTERNAL, the LCL already has selected a system font into the canvas; it prevents mismatches in sizes, if we cannot determine what exact font is used by DT_INTERNAL, fixes issue #16408
git-svn-id: trunk@28672 -
2010-12-10 20:16:16 +00:00
paul
6380ade6ac lcl, win32: handle clDefault font color in controls
git-svn-id: trunk@28308 -
2010-11-18 02:50:43 +00:00
paul
a5f3523e6f lcl: add DefaultColorType argument to TControlCanvas too
git-svn-id: trunk@28307 -
2010-11-18 02:23:34 +00:00
paul
b9de3e3bb0 lcl: use real brush color for setting bg color
git-svn-id: trunk@28146 -
2010-11-08 05:34:29 +00:00
paul
bda1a2e021 lcl: if TControlCanvas.Brush.Color = clDefault then use default control color
git-svn-id: trunk@28145 -
2010-11-08 04:43:56 +00:00
paul
c708840d05 lcl: fix name clash with ancestor fields after fpc:r16303
git-svn-id: trunk@28088 -
2010-11-05 08:07:11 +00:00
sekelsenmat
aacf8b768a Patch from bug #17555. Improves GetTextMetrics
git-svn-id: trunk@27666 -
2010-10-12 13:48:45 +00:00
mattias
369aa3055c fixed typo dont
git-svn-id: trunk@27304 -
2010-09-11 14:05:21 +00:00
mattias
51906d0ce2 LCL: TCanvas.RealizeAntialiasing: do not call changed
git-svn-id: trunk@25417 -
2010-05-15 11:42:47 +00:00
dmitry
403c0fde87 lcl: implement setting amDontCare mode for TCanvas. The actual value set is based on WS.GetLCLCapability
git-svn-id: trunk@25416 -
2010-05-15 11:32:32 +00:00
paul
6f99fb6338 lcl: pass device coords for SelectClipRGN (issue #15508)
git-svn-id: trunk@25239 -
2010-05-07 11:21:56 +00:00
paul
9e2134c1a2 lcl: use GetSysColorBrush if solid brush needs to be created with system color
win32: call Windows.GetSysColorBrush for lclintf.GetSysColorBrush

git-svn-id: trunk@25128 -
2010-05-02 09:25:41 +00:00
sekelsenmat
74f27bdc7b Improves the fpc 2.2.4 defines
git-svn-id: trunk@24957 -
2010-04-26 08:43:23 +00:00
sekelsenmat
e3b6b29bdb Implements support for FPC 2.2.4 for WinCE
git-svn-id: trunk@24956 -
2010-04-26 08:31:15 +00:00
paul
3def3ea76c lcl: formatting, cleanup
git-svn-id: trunk@24706 -
2010-04-19 01:37:51 +00:00
jesus
af4bb981df tpipro, fix print preview empty pages under unix
git-svn-id: trunk@24419 -
2010-04-04 23:46:49 +00:00
paul
2cd1e874be lcl: remove OverrideClipping define
git-svn-id: trunk@23431 -
2010-01-13 07:17:28 +00:00
mattias
463fa5e609 LCL: fixed PolyBezier with Continuous=true
git-svn-id: trunk@23012 -
2009-12-07 12:19:31 +00:00