Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2018-04

LCL TImageList method wish

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ondrej Pokorny
to AlexeyT
AlexeyT wrote 5 lines
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

Reply by email