[Lazarus] Disabled images

2015-07-02 Thread 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@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Disabled images

2015-07-02 Thread Werner Pamler
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@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Disabled images

2015-07-02 Thread Richard Mace
Great, thanks for the info.

Richard
On 2 Jul 2015 13:24, Werner Pamler werner.pam...@freenet.de wrote:

  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 
 listLazarus@lists.lazarus.freepascal.orghttp://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Disabled images not looking right in Win 7

2012-05-10 Thread Richard Mace
HI All,
I am currently writing an app and testing on Win 7 and Win xp, and am using
a various actions linked to menus and toolbar buttons.
I have noticed a big difference in the look of disabled action images
between Win XP and Win 7. I have attached both images so that you can see
what I mean.
In my optionion, the Win XP look is perfect, whilst the Win 7 version looks
like they are blacked out?

Any ideas?

Richard
attachment: win 7.pngattachment: win xp.png--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus