TMS Component

If you have a programming question, please feel free to post it here. Non-programming questions will be moved to Miscellaneous or deleted.

TMS Component

by Blod » 24/03/09 20:43

Hello,

Can anybody help with the following please?
Some time ago I installed a free TMS components set from a magazine

disk.
One of the components I would like to use is Picture container.
This component is like an imagelist but will hold Windows Metafiles

which is what I need.
There is no help provided with these components and Picture container

only publishes three properties in the Object inspector.
They are an items property which is used to add files to the container, a

tag property and finally the name property.

I can't work out how to use this component to be able to assign a file

from it to a delphi image.
Has anybody used this component?

Thanks in advance?

Blod
Blod
Active Member
Active Member
 
Posts: 7
Joined: 05/06/08 12:54

Re: TMS Component

by kokkoras » 24/03/09 23:53

Are the two formats (the one used in the component and the Delphi image) compatible ?

Accesing an image of the component should be somthing like TMSComponent.items[i]
Fotis
User avatar
kokkoras
Moderator
Moderator
 
Posts: 310
Joined: 12/03/05 23:19
Location: Thessaloniki, Greece

Re: TMS Component

by Blod » 25/03/09 13:45

I had tried something like you suggested
image1.picture:=picturecontainer1.items[0];
and the compiler reports as follows...
[Error] testing.pas(34): Class does not have a default property.

Blod
Blod
Active Member
Active Member
 
Posts: 7
Joined: 05/06/08 12:54

Re: TMS Component

by Kambiz » 26/03/09 10:43

Maybe it keeps only filename of the image.
Kambiz

Donate a cup of food for free: Click to Give @ The Hunger Site

Kambiz
Administrator
Administrator
 
Posts: 1733
Joined: 07/03/03 19:10
Location: Tehran, Iran


Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 0 guests