ondrej
81b1e5e918
lcl: icon, cursor: change array of char to array of byte
...
git-svn-id: trunk@52037 -
2016-03-23 23:42:40 +00:00
juha
86148df684
LCL: Clear also Images list for icons. Issue #24937 , patch from ChrisF
...
git-svn-id: trunk@42555 -
2013-09-02 09:57:56 +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
mattias
ece462c2a0
gtk2: increased big icon size SM_CXICON,SM_CYICON to 128
...
git-svn-id: trunk@37691 -
2012-06-19 12:07:54 +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
48f40ebb52
Adds an error message to some icon errors with empty message
...
git-svn-id: trunk@31846 -
2011-08-01 09:17:26 +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
paul
bd8008f11a
lcl: add a property to access icon images array
...
git-svn-id: trunk@28954 -
2011-01-11 08:56: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
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
paul
35ae68998e
lcl: a trial to fix wince crash because of resources. RTL FindResource supports only PChar argument
...
git-svn-id: trunk@23618 -
2010-02-03 15:29:24 +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
4f2c331030
lcl: make TCustomIcon.LoadFromResourceHandle endian safe
...
git-svn-id: trunk@23315 -
2009-12-28 23:33:40 +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
f0afca08f5
LCL: reduced debugging under wince
...
git-svn-id: trunk@22777 -
2009-11-25 22:16:26 +00:00
marc
216a9ab9a2
* Fixed bitmap and icon transparency (ussue #13883 )
...
git-svn-id: trunk@20334 -
2009-06-01 17:58:36 +00:00
paul
6af0fb9bc9
lcl: fix asterisk position in the copyright comment
...
git-svn-id: trunk@19477 -
2009-04-18 04:03:13 +00:00
marc
c8855d51da
+ Added flags to allow TLazIntfImage initialize description in creation
...
* replaced existing calls to create TLazIntfImage without description since it is set later (default works too, but might change).
* Enabled palette support for descriptions without palette
git-svn-id: trunk@17407 -
2008-11-16 15:27:37 +00:00
paul
9097a8e7c8
lcl: fix GetMaskHandle for png icons which has dummy mask ( #0012454 )
...
git-svn-id: trunk@17086 -
2008-10-21 13:56:07 +00:00
paul
25d2fc84b2
lcl: fix mem leak in icon save code
...
git-svn-id: trunk@17067 -
2008-10-20 05:02:52 +00:00
paul
ddea740b16
lcl:
...
- introduce a new class for shared icns icon
- add 2 hacks to allow correct assigning between cursors, icons, and icnsIcons (Marc, please review)
git-svn-id: trunk@16877 -
2008-10-05 09:17:23 +00:00
paul
196b1d0098
lcl: graphic changes
...
- don't create dummy mask for icon if image.MaskBitsPerPixel = 0
- win32: create dummy mask for icon if no mask is present since windows cannot live without any mask
- force Change at correct place of TIcon.AssignImage
- clear not only saved stream on TRasterImage.LoadFromStream but all handles too since they are not valid after loading another data to an image
git-svn-id: trunk@16397 -
2008-09-04 01:39:26 +00:00
marc
848eeac586
* When saving icon, use maskhandle when set
...
* Update custombitmap pixelformat when rawimage is changed
git-svn-id: trunk@16395 -
2008-09-04 00:09:45 +00:00
paul
50f81163db
lcl:
...
- cleanup
- fix TPicture.ForceType. It now copies an old image to the newly created. (fixes #0011674 )
git-svn-id: trunk@16375 -
2008-09-03 03:32:50 +00:00
marc
301ebd9881
* Implemented .ico + .cur writing
...
git-svn-id: trunk@16372 -
2008-09-02 23:00:19 +00:00
paul
caf7b07e05
lcl: added RawImageNeeded to the TIconImage. Now accessing of the Canvas for the just added image works. partially fixes #0011983
...
git-svn-id: trunk@16325 -
2008-08-31 08:42:07 +00:00
paul
07f06787ff
lcl: allow setting Size for TIcon, TCursorImage, TicnsIcon before loading or before changing Current property. fixes #0011983
...
git-svn-id: trunk@16279 -
2008-08-28 00:54:58 +00:00
paul
616a436bc1
lcl: use more efficient code in TCustomIcon.MaskHandleNeeded
...
git-svn-id: trunk@16269 -
2008-08-27 09:33:26 +00:00
paul
354cd5a4fb
lcl: forgot to delete dummy bitmap ( #0011980 )
...
git-svn-id: trunk@16265 -
2008-08-27 08:29:58 +00:00
paul
d173c2f1ae
lcl: apply Mark patch
...
- CreateCompatibleBitmaps
- separate MaskHandleNeeded of icon from BitmapHandleNeeded
- simplify TRasterImage.BitmapHandleNeeded
from me:
- fix TRawImageLineStarts.GetPosition
git-svn-id: trunk@16262 -
2008-08-27 02:47:30 +00:00
marc
ce312d71a9
* Introduced Rasterimage.Masked property to distinguish between Alpha transparency and Masked transparency ( fixes #0011850 )
...
git-svn-id: trunk@16216 -
2008-08-24 22:56:56 +00:00
paul
3f0b560eb6
lcl:
...
- moved some strings used in graphics to resources
- CreateDefaultBitmapHandle is not abstract and returns 0 now if not overrided.
git-svn-id: trunk@16178 -
2008-08-22 02:19:07 +00:00
paul
4697a14eba
lcl:
...
- restore typo in TIcon.Assign (fixes #0011858 )
- cleanup
git-svn-id: trunk@16041 -
2008-08-12 15:37:54 +00:00
marc
7bad1d6307
* Fixed imageindex when assigning icons ( #11650 )
...
* Fixed (un)sharing of images with incompatible share type (#11641 )
* Added AssignImage to TIcon so a bitmap can be assigned to the current image. Format and dimention need to be the same
git-svn-id: trunk@16020 -
2008-08-11 00:03:25 +00:00
paul
5994265add
cleanup
...
git-svn-id: trunk@16010 -
2008-08-09 15:48:16 +00:00
marc
a87d5a8d4b
* make only rawimage data public, don't allow modification of description
...
git-svn-id: trunk@15851 -
2008-07-23 23:49:17 +00:00
mattias
2996a3c332
rename COPYING.modifiedLGPL to COPYING.modifiedLGPL.txt
...
git-svn-id: trunk@15834 -
2008-07-22 09:48:15 +00:00
marc
19919c7035
* Fixed loading of old graphic streams
...
* Added TIcon.AssignImage, so one image of an icon can be changed
git-svn-id: trunk@15775 -
2008-07-14 00:40:42 +00:00
paul
77f9ce4b17
lcl:
...
- fix TSharedIcon.IsEmpty
- force MaskBitsPerPixel to be = 1 for icon
git-svn-id: trunk@15637 -
2008-07-01 06:12:13 +00:00
paul
3562f2f7fa
lcl:
...
- fix assigning of TCustomBitmap descendants to TIcon (#0011557 )
- fix bug in TCustomIcon.GetBestApplicationIndex
git-svn-id: trunk@15636 -
2008-07-01 03:41:50 +00:00
paul
1ac3288628
lcl: don't set maskbitsperpixel to 0 if no mask present for icon since windows needs mask ( #0011585 )
...
git-svn-id: trunk@15632 -
2008-07-01 00:55:38 +00:00
paul
542dac1b27
lcl: TCustomIcon.Transparent is always true now
...
git-svn-id: trunk@15631 -
2008-07-01 00:18:29 +00:00
paul
3152e64236
lcl: add TIcon.GetBestApplicationIndex - best index to use in Application.Icon or Form.Icon
...
git-svn-id: trunk@15615 -
2008-06-30 03:14:55 +00:00
paul
93c931063d
lcl:
...
- register more picture extensions (.cur, .icns)
- add simple implementation to TCustomIcon.UpdateCurrentView
git-svn-id: trunk@15613 -
2008-06-30 02:14:12 +00:00
paul
774ad4aa28
lcl: increase visibility of some icon internals to allow override it and reuse some parts in the another unit
...
git-svn-id: trunk@15580 -
2008-06-27 02:30:39 +00:00
paul
7b5d91c581
lcl: fix TRasterImage.Clear, TIcon.Clear
...
git-svn-id: trunk@15509 -
2008-06-22 15:37:58 +00:00
paul
278aa5bc29
lcl: add TGraphic.Clear
...
git-svn-id: trunk@15507 -
2008-06-22 14:45:37 +00:00
paul
ad0c55e479
lcl:
...
- create, destroy TIcon.Handle when needed
- repair TCustomForm.SetIcon, TApplication.SetIcon
git-svn-id: trunk@15503 -
2008-06-21 14:23:02 +00:00
marc
33977d2fb7
* Removed debug code (thats why I put a note there)
...
git-svn-id: trunk@15494 -
2008-06-20 23:58:24 +00:00