 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Possum Guest
|
Posted: Tue Nov 14, 2006 9:11 am Post subject: PageControl Imagelist Problem |
|
|
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
|
Posted: Tue Nov 14, 2006 3:09 pm Post subject: Re: PageControl Imagelist Problem |
|
|
"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.
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 |
|
 |
|
|
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
|
|