Why doesn't my timage show up on my form? lazarus / 10-Designer ---------------------------------------------------------------------- DanNineOne · 2009-05-02 08:15 I place a timage on a form, put an image in and run. When the form appears at runtime, I cannot see the image! How do i get it to show up? ---------------------------------------------------------------------- Marc · 2009-05-02 11:19 What's the image ? And does it show at designtime ? ---------------------------------------------------------------------- DanNineOne · 2009-05-02 12:04 it is a PNG, (although I have tried BMP and JPG too, they do not work either) I can see the image at design time but not runtime ---------------------------------------------------------------------- Marc · 2009-05-04 11:04 did you set image.visible to true ? (Silly guess maybe ?) ---------------------------------------------------------------------- DanNineOne · 2009-05-05 15:39 Being the bright spark that I am, yes I did check the "visible" property. ---------------------------------------------------------------------- Bart · 2009-05-06 10:19 What OS? Which Lazarus version? Can you post a minimal example that shows the problem (preferably just a form with one TImage withe the image you use), so we can investigate what goes wrong? Bart ---------------------------------------------------------------------- DanNineOne · 2009-05-06 18:22 Running on windows XP, (although I regularly compile it for linux also) just an image on a form with this pic in it: (http://glscript.sourceforge.net/MemChip.png) ---------------------------------------------------------------------- Bart · 2009-05-06 22:27 It works as expected (with your PNG) in lazarus 0.9.27 (r19751) / fpc 2.2.2 on Win9x. Time for an upgrade of Lazarus perhaps? Bart ---------------------------------------------------------------------- DanNineOne · 2009-05-07 06:52 ok, thanks for the help, i'll be upgrading to the latest version. ---------------------------------------------------------------------- DanNineOne · 2009-05-07 15:16 Just managed to get it compiled (laz 0.9.27), and i still cannot see thie images. I still see them at design time but not runtime. I don't know if this will help but the image is on a tab sheet in a tPageControl. ---------------------------------------------------------------------- cpalx · 2009-05-07 16:05 I don't know, but did you try to put it into a panel, maybe that can help you. ---------------------------------------------------------------------- DanNineOne · 2009-05-07 16:18 Quote from: cpalx on May 07, 2009, 06:05:00 pmI don't know, but did you try to put it into a panel, maybe that can help you. Putting it in a panel doesn't help. ---------------------------------------------------------------------- Bart · 2009-05-07 16:37 Post your sample program here, and we can see what goes wrong. Bart ---------------------------------------------------------------------- DanNineOne · 2009-05-07 16:44 Here is a sample project (see attachment) ---------------------------------------------------------------------- eny · 2009-05-08 22:53 My 2 cents: works with Vista / Lazarus 0.9.27. ---------------------------------------------------------------------- Paul Ishenin · 2009-05-09 01:47 I don't see your picture but thats because application can't find 'TImagingPNG' class which stored that data. I suspect the problem is in next: You are using some package in the IDE which registers TImagingPNG class for .png image format. Thus in design-time you IDE which built with TImagingPNG can load your picture. But your application does not include TImagingPNG class and therefore can't load stored data. Solution: a) remove package with TImagingPNG class from IDE and rebuild it after b) add unit which registers TImagingPNG as a graphic format to your uses section. ---------------------------------------------------------------------- DanNineOne · 2009-05-09 08:56 Thanks Paul, it was the vampyre imaging package that was causing the trouble.