 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Aaron G. Guest
|
Posted: Mon Jun 21, 2004 12:53 am Post subject: TBitmap.mask method bug? |
|
|
Hello everyone,
I have a few classes that depend on the Mask method of TBitmap and I've
noticed some odd behaviour under "themed" mode. Basically, it does not
work at all using an XP manifest - all it does is create a totally black
image.
I can replicate this behaviour very easily on my PC, running Windows XP
SP1 with all recent updates.
- Start a new application
- Drop an XP manifest
- Drop a TImage and load it with any image (i.e. from the Windows
folder)
- Create a button and write in its onClick: Image1.Picture.Bitmap.Mask
(clDefault);
- Run the app and click the button
- End up with a black square.
A few other things I noticed:
- It happens whether the manifest is an XPManifest component or a
..manifest file;
- It happens no matter what colour is passed as a parameter to Mask()
- It does not seem to happen on Windows XP pre-SP1 (???)
- Everything works fine if you delete the manifest (or external file)
and remove the XPMan reference.
So all I can think of is that it must be some kind of incompatibility
between the VCL and ComCtrls 6. Has anyone else run into this problem,
and if so, how did you fix it or get around it? I only know the very
basics of the Windows API so I don't really know how to write a masking
procedure that works and won't slow down the entire app.
Thanks,
Aaron
|
|
| Back to top |
|
 |
Aaron G. Guest
|
Posted: Mon Jun 21, 2004 1:02 am Post subject: Re: TBitmap.mask method bug? |
|
|
Sorry, forgot to mention that I'm using D7, which might be helpful in this
case. :)
Thanks again,
AG
|
|
| 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
|
|