TMS Component

Please discuss general Delphi programming topics here.

TMS Component

Postby Blod » March 24th, 2009, 8:43 pm

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
Junior Member
Junior Member
 
Posts: 33
Joined: June 5th, 2008, 12:54 pm

Re: TMS Component

Postby kokkoras » March 24th, 2009, 11:53 pm

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: 317
Joined: March 12th, 2005, 11:19 pm
Location: Thessaloniki, Greece

Re: TMS Component

Postby Blod » March 25th, 2009, 1:45 pm

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
Junior Member
Junior Member
 
Posts: 33
Joined: June 5th, 2008, 12:54 pm

Re: TMS Component

Postby Kambiz » March 26th, 2009, 10:43 am

Maybe it keeps only filename of the image.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Re: TMS Component

Postby Blod » March 27th, 2009, 2:18 pm

I found a link with some information but I think this component is for web applications only

http://www.tmssoftware.com/site/piccont.asp
Blod
Junior Member
Junior Member
 
Posts: 33
Joined: June 5th, 2008, 12:54 pm

Re: TMS Component

Postby JohnG » March 27th, 2009, 4:52 pm

Hello,

The PictureContainer is part of a set of "HTML" components from TMS. These components use HTML tags for formatting and linking. They're intended for use in regular Windows applications (not web applications).

See this page for a "Mini HTML" reference:
http://www.tmssoftware.com/site/minihtml.asp

Try this code for getting at the images in the container (Image1 is a TImage component):
Code: Select all
Image1.Picture.Assign(PictureContainer1.Items.Items[0].Picture);


hth,
John
JohnG
Member
Member
 
Posts: 2
Joined: November 1st, 2008, 2:18 am

Re: TMS Component

Postby Blod » March 27th, 2009, 8:14 pm

Thanks John
I'll try that code
Blod
Junior Member
Junior Member
 
Posts: 33
Joined: June 5th, 2008, 12:54 pm

Re: TMS Component

Postby Blod » March 28th, 2009, 10:57 am

Yes that works fine.

Thanks to all Posters

Blod
Blod
Junior Member
Junior Member
 
Posts: 33
Joined: June 5th, 2008, 12:54 pm

Re: TMS Component

Postby kokkoras » April 2nd, 2009, 4:09 am

How about this:

Image1.Picture.LoadFromFile( PictureList1.Thumbnails.Items[0].Filename );

where

PictureList1: TPictureList; //(TMS component)
Image1: TImage; //(Delphi Component)

PictureList1 holds the thumbnail data and the filename to the big picture.
User avatar
kokkoras
Moderator
Moderator
 
Posts: 317
Joined: March 12th, 2005, 11:19 pm
Location: Thessaloniki, Greece

Re: TMS Component

Postby Blod » April 3rd, 2009, 1:34 pm

Thanks,
I'll give that a try also
Blod
Junior Member
Junior Member
 
Posts: 33
Joined: June 5th, 2008, 12:54 pm


Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 3 guests

cron