🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #6923

Re: ImageList insert

#6923
From: Vladimir Stefanovic
Date: Sun, 03 Apr 2005 12:21
47 lines
2462 bytes
If I understoup the question well, what wrong with
TCustomImageList::Replace() ?

Replaces an image in the image list with a new image and mask.
void __fastcall Replace(int Index, Graphics::TBitmap* Image,
Graphics::TBitmap* Mask);


Or the sequence of methods of TCustomImageList?

1) Adds an Image and its Mask to the image list object.
int __fastcall Add(Graphics::TBitmap* Image,
Graphics::TBitmap* Mask);

2) Deletes a particular image from the image list.
void __fastcall Delete(int Index);

3) Moves a specified image to another position.
void __fastcall Move(int CurIndex, int NewIndex);



-- 
Best regards,
Vladimir Stefanovic

"xa" <pageme@ntlworld.com> wrote in message 
news:424fc6f2@newsgroups.borland.com...
> Can anyone point me in the right direction for replacing an image in an
> ImageList with another same size image.
>
> The Image list i use is created at runtime and the images are used for a
> ListView...due to the time involved in loading the images into the 
> ImageList
> i would like to be able to insert an edited image selection with the new
> image without having to reload the entire list of images into the 
> ImageList
> to re-index them.. the index of the images is tied to other data so i cant
> have it just remove the other image and use the Add() function as it would
> put out the other data indexes.
>
> I did notice HIDESBASE Insert method for inserting a bitmap into an
> imagelist but not sure if this is the only way of doing it..
>
>
>
> 
Technical Details
Message-ID: <424fdfd4@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <424fc6f2@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ece920da0e48971e
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Vladimir Stefanovic" <antivari@po.sbb.co.yu>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <424fc6f2@newsgroups.borland.com>
Subject: Re: ImageList insert
Date: Sun, 3 Apr 2005 14:21:42 +0200
Lines: 49
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 82.117.212.65
Message-ID: <424fdfd4@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1112530900 82.117.212.65 (3 Apr 2005 05:21:40 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail