[Lazarus] High-DPI TImageList

Leandro Diaz leandrodiazoe at gmail.com
Thu Feb 8 20:02:54 CET 2018


Ok Juha thanks.

And what about the ifdef for that missing method? ReferenceNeeded

Sent from Mailspring (https://link.getmailspring.com/link/local-0739f840-40a8-v1.1.3-27dcee2f@PC-i7/0?redirect=https%3A%2F%2Fgetmailspring.com%2F&recipient=lazarus%40lists.lazarus-ide.org), the best free email app for work
On feb. 8 2018, at 3:59 pm, Juha Manninen via Lazarus <lazarus at lists.lazarus-ide.org> wrote:
>
> On Thu, Feb 8, 2018 at 5:02 PM, lainz via Lazarus
> <lazarus at lists.lazarus-ide.org> wrote:
> > My question is *if the method still will be called instead of the LCL one in
> > 1.9 without using override*. I know this is a basic of OOP but I need a bit
> > of help because I never use virtual and overload.
>
>
> Virtual methods are polymorphic so a caller does not need to know the
> actual type of an object. The correct virtual / overridden method is
> always called.
> I guess your code knows the exact type (BGRAImageList) and can use it.
> Thus the correct method is called even if it is not virtual.
>
> Juha
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20180208/791ec811/attachment-0001.html>


More information about the Lazarus mailing list