Recent

Author Topic: Why doesn't my timage show up on my form?  (Read 14257 times)

DanNineOne

  • New Member
  • *
  • Posts: 46
Why doesn't my timage show up on my form?
« on: May 02, 2009, 10:15:12 am »
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? :(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>   Win 7 64 bit with Lazarus 1.0.6            <<
>>  danieljabailey@googlemail.com             <<
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2673
Re: Why doesn't my timage show up on my form?
« Reply #1 on: May 02, 2009, 01:19:25 pm »
What's the image ?
And does it show at designtime ?
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

DanNineOne

  • New Member
  • *
  • Posts: 46
Re: Why doesn't my timage show up on my form?
« Reply #2 on: May 02, 2009, 02:04:50 pm »
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>   Win 7 64 bit with Lazarus 1.0.6            <<
>>  danieljabailey@googlemail.com             <<
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2673
Re: Why doesn't my timage show up on my form?
« Reply #3 on: May 04, 2009, 01:04:05 pm »
did you set image.visible to true ? (Silly guess maybe ?)
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

DanNineOne

  • New Member
  • *
  • Posts: 46
Re: Why doesn't my timage show up on my form?
« Reply #4 on: May 05, 2009, 05:39:09 pm »
Being the bright spark that I am, yes I did check the "visible" property. :D
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>   Win 7 64 bit with Lazarus 1.0.6            <<
>>  danieljabailey@googlemail.com             <<
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Bart

  • Hero Member
  • *****
  • Posts: 5680
    • Bart en Mariska's Webstek
Re: Why doesn't my timage show up on my form?
« Reply #5 on: May 06, 2009, 12:19:26 pm »
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

  • New Member
  • *
  • Posts: 46
Re: Why doesn't my timage show up on my form?
« Reply #6 on: May 06, 2009, 08:22:44 pm »
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)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>   Win 7 64 bit with Lazarus 1.0.6            <<
>>  danieljabailey@googlemail.com             <<
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Bart

  • Hero Member
  • *****
  • Posts: 5680
    • Bart en Mariska's Webstek
Re: Why doesn't my timage show up on my form?
« Reply #7 on: May 07, 2009, 12:27:48 am »
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

  • New Member
  • *
  • Posts: 46
Re: Why doesn't my timage show up on my form?
« Reply #8 on: May 07, 2009, 08:52:18 am »
ok, thanks for the help, i'll be upgrading to the latest version.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>   Win 7 64 bit with Lazarus 1.0.6            <<
>>  danieljabailey@googlemail.com             <<
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

DanNineOne

  • New Member
  • *
  • Posts: 46
Re: Why doesn't my timage show up on my form?
« Reply #9 on: May 07, 2009, 05:16:18 pm »
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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>   Win 7 64 bit with Lazarus 1.0.6            <<
>>  danieljabailey@googlemail.com             <<
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

cpalx

  • Hero Member
  • *****
  • Posts: 754
Re: Why doesn't my timage show up on my form?
« Reply #10 on: May 07, 2009, 06:05:00 pm »
I don't know, but did you try to put it into a panel, maybe that can help you.

DanNineOne

  • New Member
  • *
  • Posts: 46
Re: Why doesn't my timage show up on my form?
« Reply #11 on: May 07, 2009, 06:18:51 pm »
I 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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>   Win 7 64 bit with Lazarus 1.0.6            <<
>>  danieljabailey@googlemail.com             <<
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Bart

  • Hero Member
  • *****
  • Posts: 5680
    • Bart en Mariska's Webstek
Re: Why doesn't my timage show up on my form?
« Reply #12 on: May 07, 2009, 06:37:37 pm »
Post your sample program here, and we can see what goes wrong.

Bart

DanNineOne

  • New Member
  • *
  • Posts: 46
Re: Why doesn't my timage show up on my form?
« Reply #13 on: May 07, 2009, 06:44:07 pm »
Here is a sample project (see attachment)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>   Win 7 64 bit with Lazarus 1.0.6            <<
>>  danieljabailey@googlemail.com             <<
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

eny

  • Hero Member
  • *****
  • Posts: 1653
Re: Why doesn't my timage show up on my form?
« Reply #14 on: May 09, 2009, 12:53:50 am »
My 2 cents: works with Vista / Lazarus 0.9.27.
All posts based on: Win10 (Win64); Lazarus 3_4  (x64) 25-05-2024 (unless specified otherwise...)

 

TinyPortal © 2005-2018