[Lazarus] Disabled images

Werner Pamler werner.pamler at freenet.de
Thu Jul 2 14:21:30 CEST 2015


Your understanding that the disabled images will be used instead of the 
normal images if the action is disabled is correct. You may have noticed 
also there are also HotImages which become active if the mouse is moved 
over a toolbutton. BUT: Since there is only one ImageIndex all 
Imagelists (Images, DisabledImages, HotImages) must be in sync, i.e. 
same count and same order of images. This is some kind of restriction 
for practical use.

Am 02.07.2015 um 14:00 schrieb Richard Mace:
> Hi All,
> I have a toolbar with buttons on it, that are linked to actions. I 
> also note, that there is a property called DisabledImages. I'm 
> presuming this is to do with images that will be displayed on the 
> toolbar, instead of the normal images, when the action is disabled?
> If this is the case, how do I specify which image relates to the 
> correct action in the ImageList?
>
> Hope that makes sense?
>
> Windows 7 Pro Lazarus 1.4 FPC 2.6.4
>
> Richard
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150702/7ba5aa44/attachment-0003.html>


More information about the Lazarus mailing list