[Lazarus] LCL TImageList method wish

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Lazarus] LCL TImageList method wish

Free Pascal - Lazarus mailing list
Ondrej,
this patch
https://github.com/graemeg/lazarus/commit/0ff493e8cf2b6e4f1c971561db87d2579396eacd
makes the same for 4 WS'es: it gets bitmap from imagelist for some
resolution.
Wish: make TImageList.GetBitmapForResulution and make this patch simpler.

--
Regards,
Alexey

--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] LCL TImageList method wish

Free Pascal - Lazarus mailing list
On 26.04.2018 11:00, AlexeyT via Lazarus wrote:
> this patch
> https://github.com/graemeg/lazarus/commit/0ff493e8cf2b6e4f1c971561db87d2579396eacd
> makes the same for 4 WS'es: it gets bitmap from imagelist for some
> resolution.
> Wish: make TImageList.GetBitmapForResulution and make this patch simpler.

You mean you want to simplify 2 calls:
AValue.GetImageIndexAndEffect
AImageRes.GetBitmap

into one call:
AValue.GetBitmap

?

OK, if you feel it is really worth it, feel free to send a patch.

+ You will need to keep GetImageIndexAndEffect anyway.

Ondrej
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus