🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: System Icons

#3526
From: Remy Lebeau (TeamB)
Date: Wed, 07 Jun 2006 22:49
22 lines
1893 bytes
"Jeff" <Jeff@nospam.com> wrote in message
news:44875268$1@newsgroups.borland.com...

> Code for image list (called in FormCreate):

DO NOT use the OnCreate event in C++!  It is a Delphi idiom that does not
work reliably in C++ as it can be triggered before the constructor, which is
illegal.  Use the actual constructor instead, or else delay the code until
after the form is fully created.

The same goes for the OnDestroy event - is can be triggered after the
destructor, which is illegal, so never use the OnDestroy event in C++
either.

> Are there any properties to the TImageList, other than ShareImages,
> that I should be concerned with?

No.


Gambit
Technical Details
Message-ID: <4487589c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!transit.news.xs4all.nl!xs4all!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <448716d6$1@newsgroups.borland.com> <448720b8$1@newsgroups.borland.com> <44872e9b$1@newsgroups.borland.com> <44872fa9@newsgroups.borland.com> <44874af9$1@newsgroups.borland.com> <44875092$1@newsgroups.borland.com> <44875268$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,de14f1cb04eef46a
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <448716d6$1@newsgroups.borland.com> <448720b8$1@newsgroups.borland.com> <44872e9b$1@newsgroups.borland.com> <44872fa9@newsgroups.borland.com> <44874af9$1@newsgroups.borland.com> <44875092$1@newsgroups.borland.com> <44875268$1@newsgroups.borland.com>
Subject: Re: System Icons
Date: Wed, 7 Jun 2006 15:49:55 -0700
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <4487589c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1149720732 68.69.17.41 (7 Jun 2006 15:52:12 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!transit.news.xs4all.nl!xs4all!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail