Sign in Join

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

Mailing lists / lazarus / 2015-07

Disabled images

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150702/bc320185/attachment.html>

Reply by email

Werner Pamler
to Richard Mace

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.

Richard Mace wrote 20 lines
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 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

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

Reply by email

Richard Mace
to Werner Pamler

Great, thanks for the info.

Richard

"Werner Pamler" wrote 37 lines
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 ://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150702/c223689e/attachment.html>

Reply by email