BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PageControl Imagelist Problem

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Possum
Guest





PostPosted: Tue Nov 14, 2006 9:11 am    Post subject: PageControl Imagelist Problem Reply with quote



Hi

I am using D4 and am trying to display icons in the tabs on a control. But
when I compile the app the icons that show on the tabs do not match the
uncompiled ones. They change

How can I work around this problem..

cheers Peter..
Back to top
JD
Guest





PostPosted: Tue Nov 14, 2006 3:09 pm    Post subject: Re: PageControl Imagelist Problem Reply with quote



"Possum" <possum (AT) nospam (DOT) com> wrote:
Quote:

[...] trying to display icons in the tabs on a control.
But [...] the icons that show on the tabs do not match the
uncompiled ones.

I don not see that behavior even if I add multiple TImageLists
to the form. I would expect that the problem is with your code
which can be verified by starting a new application and adding
the TPageControl, some new TabSheets and a TImageList.

Quote:
They change

How do they change? Are you seeing images from another
TImageList? If so, do a global search using the wrong
TImageList's Name or 'Images' (TPageControl's property)
to see if you are inadvertantly assigning the other
TImageList to the control's Images property.

Mis-assigning the control's Images property is the only thing
that makes sense but if you find that you are not doing that
then I would look for something causing undefined behavior
like writing past the end of an allocated buffer or incorrectly
freeing an object or memory.

Quote:
How can I work around this problem.

You shouldn't take this approach. You should fix the problem
instead of masking the symptoms but the answer is to use the
OnDrawTab event and draw it (them) yourself.

~ JD
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.