Commit Graph

465 Commits

Author SHA1 Message Date
paul
f6f27bf260 lcl: load TBitmap only from RT_BITMAP resources. Other bitmap types should be loaded from RT_RCDATA since RT_BITMAP stream is not valid
git-svn-id: trunk@42956 -
2013-09-27 02:42:52 +00:00
marc
84d4e52eae Add scanline support
git-svn-id: trunk@41855 -
2013-06-23 19:46:43 +00:00
paul
292d526fc0 lcl: move LoadIcon, LoadCursor, LoadBitmap to LCLIntf to prevent name clashing with Windows unit (issue #0024222)
git-svn-id: trunk@41817 -
2013-06-23 12:29:11 +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
mattias
c86922a811 LCL: implemented TCanvas.DoPolyBezier
git-svn-id: trunk@40530 -
2013-03-12 00:43:26 +00:00
mattias
48ec025ae8 fixed compilation with fpc 2.6.3
git-svn-id: trunk@40410 -
2013-02-25 22:17:54 +00:00
mattias
434dcee856 LCL: fixed compilation fpc 2.6.0
git-svn-id: trunk@40249 -
2013-02-10 14:04:29 +00:00
mattias
5ee38f3ce4 lcl: using fpcanvas JoinStyle
git-svn-id: trunk@40240 -
2013-02-10 12:26:35 +00:00
mattias
9860bb1ef1 lcl: using fpcanvas EndCap
git-svn-id: trunk@40239 -
2013-02-10 12:22:05 +00:00
juha
8fae5b8320 LCL, GTK2: Font with number got wrong size part 2, issue #21775, patch from G. Zakrzewski"
git-svn-id: trunk@38098 -
2012-07-31 20:04:31 +00:00
juha
7b4d61fb28 LCL: fix warnings with fpc 2.6.1. Issue #22231, patch from Alexander Shishkin
git-svn-id: trunk@37596 -
2012-06-08 21:31:06 +00:00
juha
799d77f145 Revert "LCL: Fix font size when there is a number in name. Issue #21775". Broke font height calculation.
git-svn-id: trunk@37515 -
2012-06-04 16:19:58 +00:00
juha
bf78f3cde3 LCL: Fix font size when there is a number in name. Includes 2 patches from cobines. Issue #21775
git-svn-id: trunk@37469 -
2012-05-31 19:20:33 +00:00
mattias
e4298bec55 lcl: comments
git-svn-id: trunk@37449 -
2012-05-29 06:27:51 +00:00
juha
38afa2826c Revert r37258 #dee0c332d7 because font bold style stopped working with GTK2.
git-svn-id: trunk@37279 -
2012-05-14 19:13:14 +00:00
juha
dee0c332d7 LCL: Fix wrong font size when there are numbers in name, issue #21775, patch from cobines
git-svn-id: trunk@37258 -
2012-05-12 13:40:10 +00:00
paul
0e7b523d31 lcl: fix TBrush.Assign (was missing FreeReference, extra changed when nothing changed)
git-svn-id: trunk@36813 -
2012-04-16 09:23:24 +00:00
paul
880401dbb8 lcl: remove ver2_2_x defines
git-svn-id: trunk@36368 -
2012-03-27 07:16:11 +00:00
mattias
22aeb25172 IDEIntf: TColorPropertyEditor.ListDrawValue: fixed wrong values
git-svn-id: trunk@35846 -
2012-03-09 16:11:05 +00:00
zeljko
1b0fc1ad3d Gtk, Gtk2: update rawimage description when we are about 1bpp since gtk/gtk2 expects XBM format for 1bpp bitmaps, otherwise it crashes. issue #12362
git-svn-id: trunk@35502 -
2012-02-20 07:57:55 +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
mattias
5feee468d7 LCL: fixed typo
git-svn-id: trunk@35035 -
2012-01-30 09:23:43 +00:00
marc
63cac4d912 lcl: fix loading from resourceids
git-svn-id: trunk@34469 -
2011-12-28 16:09:04 +00:00
mattias
8d89a03bd1 LCL: less warnings
git-svn-id: trunk@34293 -
2011-12-19 20:37:58 +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
6354fb85b9 Deprecates FontCanUTF8
git-svn-id: trunk@33861 -
2011-11-30 09:11:00 +00:00
mattias
78e66fbc68 LCL: TIdentToInt: var to out
git-svn-id: trunk@33420 -
2011-11-08 17:08:10 +00:00
paul
21ab9f3b6a lcl: copy PixelFormat on TCustomBitmap.Assign operation
git-svn-id: trunk@33344 -
2011-11-05 16:28:40 +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
sekelsenmat
4ca2e72008 Workaround for allowing the use of the available Android snapshot
git-svn-id: trunk@33013 -
2011-10-22 06:47:42 +00:00
sekelsenmat
3577059604 patch from bug #19747: Masked property not set correctly when assigning TIcon to TBitmap
git-svn-id: trunk@32932 -
2011-10-17 07:08:29 +00:00
sekelsenmat
844cfc629d Adds minimal functionality so that TRegion can be usable for regions composed of rectangles
git-svn-id: trunk@31730 -
2011-07-18 07:20:19 +00:00
mattias
597e60e8a7 LCL: broke unit dependency of graphics on controls
git-svn-id: trunk@31628 -
2011-07-09 23:10:27 +00:00
paul
59684c6edd lcl: free shareimage image when FreeImage is called in TCustomBitmap. This allows to change PixelFormat to desired.
git-svn-id: trunk@31469 -
2011-06-30 07:08:29 +00:00
mattias
e974f302e5 turbo ipro: update layout in Paint if needed
git-svn-id: trunk@31203 -
2011-06-13 17:59:40 +00:00
mattias
d750730b4e LCL: clean up
git-svn-id: trunk@30640 -
2011-05-09 17:02:58 +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
047830f98d lcl: add LoadBitmap, LoadIcon, LoadCursor into graphics.pp for winapi compatibility
git-svn-id: trunk@30007 -
2011-03-24 06:04:22 +00:00
paul
e334fff57a lcl: fix loading of icons and cursor from the resources:
- fix signature check for TCursorImage in case of ReadData call
  - split loading of icons and cursor from the resource because of different structures used for them
  - load TCursorImage from RT_CURSOR instead of RT_ICON

git-svn-id: trunk@30006 -
2011-03-24 03:37:06 +00:00
juha
7be110eac0 LCL: Changed ColorToRGB return type to Delphi compatible Longint
git-svn-id: trunk@29759 -
2011-03-09 12:33:24 +00:00
juha
0928ead547 LCL: Changed function ColorToRGB's return value to TColorRef. Many related changes around the code.
git-svn-id: trunk@29734 -
2011-03-06 12:45:59 +00:00
paul
013f06f128 lcl: if there is no bitmap handles are created for Icon then add it to imagelist using rawimage (issue #0017900)
git-svn-id: trunk@28956 -
2011-01-11 09:15:01 +00:00
paul
bd8008f11a lcl: add a property to access icon images array
git-svn-id: trunk@28954 -
2011-01-11 08:56:11 +00:00
paul
fa4ada16f4 lcl: add lcl_defines include file which can be used for common lcl defines (like UseCLDefault)
git-svn-id: trunk@28343 -
2010-11-19 10:46:12 +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
1688a1e6a8 lcl: don't clear BrushResourceCache directly (fixes bug #0017647)
git-svn-id: trunk@28271 -
2010-11-16 14:28:38 +00:00
paul
78a7d0a8a8 win32: correct vista+ menu size for other DPIs (issue #0017878)
git-svn-id: trunk@28196 -
2010-11-13 02:16:03 +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
mattias
c10f6e5365 LCL: TGraphic.LoadFromResourceID: PtrUInt to PtrInt for Delphi compatibility
git-svn-id: trunk@27869 -
2010-10-26 07:32:58 +00:00
mattias
50b31c7963 LCL: TCustomIcon.LoadFromResourceID: changed integer to PtrUInt
git-svn-id: trunk@27849 -
2010-10-25 10:37:34 +00:00
mattias
369aa3055c fixed typo dont
git-svn-id: trunk@27304 -
2010-09-11 14:05:21 +00:00
paul
9a78c04db3 lcl: add gif format support by patch of José Mejuto (issue #0016993)
git-svn-id: trunk@26758 -
2010-07-21 02:56:37 +00:00
marc
1ad1d06743 * Graphics: Added TTiffImage
git-svn-id: trunk@25134 -
2010-05-02 14:36:41 +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
mattias
648572164c LCL: comments
git-svn-id: trunk@25100 -
2010-05-01 15:33:23 +00:00
paul
676c706e5c lcl, win32: implement loading icon,cursor from an icon handle (HICON) (GetInfoInfo needs to be implement for other widgetsets to support on other platforms), issue #0016356
git-svn-id: trunk@25024 -
2010-04-28 08:52:16 +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
099ba06e28 lcl: add TPicture.LoadFromStream, TPicture.SaveToStream based on image header sign (issue #0010006)
git-svn-id: trunk@24945 -
2010-04-26 03:44:52 +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
e25a2cdb71 lcl: fix range check error in lcl icon building from resource data by C Western (issue #0015541) + remove of ifdefs
git-svn-id: trunk@23481 -
2010-01-18 07:53:16 +00:00
paul
2cd1e874be lcl: remove OverrideClipping define
git-svn-id: trunk@23431 -
2010-01-13 07:17:28 +00:00
paul
f81a7b073a lcl: native resource support:
- add implementation for LoadFromResourceName and LoadFromResourceID for TIcon and TCursorImage
  - try loading icon from native resource if appropriate lrs resource is not available

git-svn-id: trunk@23290 -
2009-12-26 15:10:14 +00:00
mattias
98cdda2155 lcl: radialpie: better param names
git-svn-id: trunk@22999 -
2009-12-06 11:51:48 +00:00
mattias
bb95f46f02 LCL: renamed some Arc parameters
git-svn-id: trunk@22966 -
2009-12-04 15:48:55 +00:00
vincents
1f00732641 LCL: use {} .. {} to make fpdoc < 2.5.1 happy
git-svn-id: trunk@22491 -
2009-11-08 19:18:18 +00:00
vincents
cd5f7242c6 lcl: reverted r22427 #c614f0dff7, fpdoc 2.5.1 has been fixed
git-svn-id: trunk@22440 -
2009-11-05 09:13:43 +00:00
vincents
c614f0dff7 LCL: don't use { declared(vmtEquals)}, fpdoc hangs on it
git-svn-id: trunk@22427 -
2009-11-04 12:44:57 +00:00
paul
929dc64acd lcl: properly override TObject.Equals for TGraphic class
git-svn-id: trunk@22393 -
2009-11-03 02:17:39 +00:00
mattias
e6d6a54eb9 reduced warnings
git-svn-id: trunk@22382 -
2009-11-02 10:47:24 +00:00
mattias
d4413200ce LCL: fixed overflow
git-svn-id: trunk@21715 -
2009-09-15 18:54:17 +00:00
sekelsenmat
9d1b80451a Changes all dynamic methods in the ide, lclintf and lcl to virtual methods, because they are the same in fpc and dynamic is a legacy directive
git-svn-id: trunk@21280 -
2009-08-18 14:44:25 +00:00
paul
e93e11b149 lcl: add an ability to select cleartype fonts on windows.
qt: add support for cleartype font requests

git-svn-id: trunk@20907 -
2009-07-20 14:19:09 +00:00
paul
6eb542a6f7 lcl: add Orientation to the TFontData structure (fixes issue #0009754)
git-svn-id: trunk@20868 -
2009-07-16 01:21:29 +00:00
paul
2bbd8ddb40 lcl: fix TCanvas.Clipping for fpc < 2.3.1 (issue #0013418)
git-svn-id: trunk@20703 -
2009-06-22 03:13:00 +00:00
marc
8f9838a385 * Initialize writers when writing a TPicture graphic in a different format. Fixes issue #0013451
git-svn-id: trunk@20562 -
2009-06-09 22:58:19 +00:00
mattias
a465012659 LCL: TCanvas: removed LineTo, MoveTo, using DoLineTo and DoMoveTo instead
git-svn-id: trunk@20479 -
2009-06-06 15:51:39 +00:00
mattias
8e4bea4234 LCL: TCanvas: added LineTo(p: TPoint)
git-svn-id: trunk@20477 -
2009-06-06 15:34:46 +00:00
paul
119c2796bf lcl: use Screen.SystemFont for TCanvas.TextRect
git-svn-id: trunk@20285 -
2009-05-28 14:23:19 +00:00
paul
077b9c0616 lcl: fonts:
- add TScreen.IconFont, TScreen.MenuFont, TScreen.SystemFont
  - replace TWidgetset.InitHintFont with TWidgetset.InitStockFont
win32, wince: retrieve default font from SystemParametersInfo as described in issue #0013848

git-svn-id: trunk@20275 -
2009-05-28 09:23:07 +00:00
paul
f977ee640b lcl: update font on Height change. Change the size only is not correct since LogFont contains lfHeight = Height. fixes bug #0013727
git-svn-id: trunk@20010 -
2009-05-17 13:57:24 +00:00
paul
fd36716c15 lcl: formatting
git-svn-id: trunk@20008 -
2009-05-17 13:33:55 +00:00
vincents
b21b6284da LCL: use simpler expression to determine if TCanvas.SetClipping can be overridden; the previous expression could not be parsed by fpdoc
git-svn-id: trunk@19912 -
2009-05-10 19:17:16 +00:00
sekelsenmat
9c170f9a4f Adds orientation property for TFont
git-svn-id: trunk@19734 -
2009-05-01 14:00:12 +00:00
vincents
b38eb5e49d LCL: fixed compilation of TCanvas.GetClipping with fpc < 2.3.1
git-svn-id: trunk@19690 -
2009-04-29 11:32:11 +00:00
paul
76a007d97f lcl: implement TCanvas.SetClipRect, TCanvas.GetClipping, TCanvas.SetClipping (with help of Benito van der Zander, can be used with fpc < 2.3.1 or with 2.3.1 >= r13057 #de83088a7d, issue #0013418)
git-svn-id: trunk@19687 -
2009-04-29 09:31:48 +00:00
paul
7125a8d9af lcl: cleanup
git-svn-id: trunk@19293 -
2009-04-10 01:24:37 +00:00
paul
e486ddaa54 lcl: cleanup
git-svn-id: trunk@19284 -
2009-04-09 08:03:03 +00:00
paul
058c9c7149 lcl: implement TCanvas.TryLock (fixes part of issue #0008380)
git-svn-id: trunk@19047 -
2009-03-20 17:46:12 +00:00
paul
27e3ec707f lcl: set default value for TPen.Cosmetic
git-svn-id: trunk@18982 -
2009-03-13 15:54:41 +00:00
sekelsenmat
294ed321af Small fix to comment in graphics
git-svn-id: trunk@18640 -
2009-02-11 17:26:46 +00:00
marc
ec7a647154 * Added loading form rawimage
git-svn-id: trunk@18328 -
2009-01-18 15:47:42 +00:00
paul
f7e1b1b5ac lcl: set some default values to TFont properties
git-svn-id: trunk@17699 -
2008-12-06 11:46:59 +00:00
paul
fca22fcc33 lcl: return CLX colors temporary to allow project compilation (will raise deprecated warning now) and loading forms in ide (though CLX colors will not be listed in the object inspector anymore)
git-svn-id: trunk@17538 -
2008-11-23 10:25:45 +00:00
paul
ffa494672e lcl: remove CLX colors. They are nowhere defined, nowhere used and nobody wants to support them for years
git-svn-id: trunk@17458 -
2008-11-20 01:53:23 +00:00
paul
6590644430 lcl: don't show windows color synonyms in the object inspector and other color lists (like colorbox, colorlistbox)
git-svn-id: trunk@17442 -
2008-11-19 12:36:51 +00:00
paul
8220969ef4 lcl: Colors
- add clMenuBar, clMenuHighlight system colors
 - add pretty names for windows system colors

git-svn-id: trunk@17439 -
2008-11-19 12:20:13 +00:00