On Wed, 29 Nov 2006 10:28:35 +0100 (CET)
Michael Van Canneyt <[EMAIL PROTECTED]> wrote:

> 
> 
> On Wed, 29 Nov 2006, Mattias Gaertner wrote:
> 
> > On Tue, 28 Nov 2006 23:50:09 +0100
> > Marc Weustink <[EMAIL PROTECTED]> wrote:
> > 
> > > [EMAIL PROTECTED] wrote:
> > > >> [EMAIL PROTECTED] wrote:
> > > >>>>> Normally when using the package (jpegforlazarus or 
> > > >>>> images4lazarus), the
> > > >>>>> IDE adds the unit to program source and thus the lazjpeg
> > > >>>>> unit 
> > > >> is 
> > > >>>> used.
> > > >>>> Now we are at the topic, last weekend I was demonstrating
> > > >>>> with a jpeg in 
> > > >>>> a TPicture. When loading the image in the IDE, the *.jpg
> > > >>>> fiter wasn't 
> > > >>>> there. However, when filtering for all files, selecting
> > > >>>> a .jpg worked. 
> > > >>>> It's preview was shown. The image on the form was also
> > > >>>> shown. However, 
> > > >>>> the compiled exe didn't show the image.
> > > >>> If you want to see the image you need to use ene of the
> > > >>> images 
> > > >> packages mentioned before in your application. The default
> > > >> lazarus win32 install had that package and can therefore show
> > > >> it.
> > > >>
> > > >> mm.... as an ordinary user, I don't think I find that logical.
> > > >> IMO there is no difference between a bmp and a jpg. Where both
> > > >> were shown in the IDE and only the first worked as expected.
> > > > 
> > > > So, add one of the images packages to the default application?
> > > 
> > > Maybe a more generic thing. I think it counts for all code used
> > > from a package. Add the package to the project depencencies the
> > > moment it is used. I think this also counts for cotrols defined
> > > in a package for instance.
> > 
> > Control classes are registered with packages. Picture formats are
> > not. How does Delphi do it?
> 
> Picture formats are registered by including a unit that contains the
> support. If you add this unit to a package and install the package in
> the IDE, the IDE will 'know' the format. 

Implemented.

Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to