Re: [lazarus] How to get transparent images from TImageList?
If I run project1, the images are displayed Ok, even if I add the ones that I used in my own project.
Re: [lazarus] How to get transparent images from TImageList?
Gerard N/A wrote: If I run project1, the images are displayed Ok, even if I add the ones that I used in my own project. hmm if you added them to the imagelist at designtime, then I wonder what goes wrong.. Marc _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] How to get transparent images from TImageList?
Gerard N/A wrote: Hi all, I am writing a little app with Lazarus (SVN 13389) wich has two toolbars with several buttons each. There is an action list with some actions assinged to toolbar buttons, some to main menu items, and some to both. I droped a TImageList, added some 16X16 pixels bitmaps with a fuchsia background , and assigned the image list to the toolbar and menus, and each image index to the buttons and menu items. At design-time, when I first open the Imagelist dialog, the bitmaps disappear from buttons and menu items. Closing Lazarus and starting it again, and the bitmaps show up again. That's anoying, but I can live with that. The problem is that the images show up with the fuchsia background. I think I have tried all the possible combinations of bkColor, BlendColor, DrawingStyle, etc.. for the imagelist, but there is no way to have transparency. I loaded one more bitmap with a white background, and with bkColor and BlendColor set to clWhite, it works. Any hints? First, what OS and what screen resolution (depth) Marc _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] How to get transparent images from TImageList?
Sorry, I forgot to add: - Win Xp Pro. - NVidia GForce 5200 - 1024 X 768, 32 bits
Re: [lazarus] How to get transparent images from TImageList?
Gerard N/A wrote: Sorry, I forgot to add: - Win Xp Pro. - NVidia GForce 5200 - 1024 X 768, 32 bits Try running the next example. If it works, then the imagelist is doing something wrong, else the lcl. Marc http://lazarus.dommelstein.nl/mytest/imagelist _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] How to get transparent images from TImageList?
Hi all, I am writing a little app with Lazarus (SVN 13389) wich has two toolbars with several buttons each. There is an action list with some actions assinged to toolbar buttons, some to main menu items, and some to both. I droped a TImageList, added some 16X16 pixels bitmaps with a fuchsia background , and assigned the image list to the toolbar and menus, and each image index to the buttons and menu items. At design-time, when I first open the Imagelist dialog, the bitmaps disappear from buttons and menu items. Closing Lazarus and starting it again, and the bitmaps show up again. That's anoying, but I can live with that. The problem is that the images show up with the fuchsia background. I think I have tried all the possible combinations of bkColor, BlendColor, DrawingStyle, etc.. for the imagelist, but there is no way to have transparency. I loaded one more bitmap with a white background, and with bkColor and BlendColor set to clWhite, it works. Any hints? Regards, Gerard.