|
-
Aug 9th, 2007, 11:11 AM
#1
Thread Starter
Junior Member
ActiveX Control - Transparency Problem
Hi,
I need to put an hourglass shape on an ActiveX control. I've put an Image Control on the ActiveX control and put my hourglass GIF (essentially an inverted colored triangle on top of an upright one...) on it. I've also set the backstyle property of the ActiveX control to 0 (Transparent). Now, ideally, when I put the control on some form, it should just show the hourglass, and the color of the form should be visible in the transparent regions of the hourglass shape. It doesn't! Instead, the backcolor of the ActiveX Control fills those regions. I just hope I've put the problem clearly enough There are solved problems in this forum and elsewhere, but they deal with uniform shapes, like circles. Any ideas? Thanks.
By the way, isn't there any way I can draw the hourglass shape at runtime without having to use the Image or Picture controls? I've tried but can't find a way to fill up the triangles...
Last edited by mr_m_imran; Aug 14th, 2007 at 03:46 AM.
-
Aug 14th, 2007, 03:44 AM
#2
Thread Starter
Junior Member
Re: ActiveX Control - Transparency Problem
okay. the soultion is quite simple, actually. in my case where only one picture was used, i just set the maskpicture prperty of the usercontrol object to the bmp image i was using. then in the maskcolor property of the usercontrol, i just put the color i wanted to be transparent in the image. and there it was. the color of the hourglass would be the same as the backcolor of the usercontrol, and can be set at design time and/or runtime. still the problem exists for cases where there are multiple pictures on one usercontrol, or, the image contains multiple colors.
imran.
-
Sep 10th, 2007, 10:57 AM
#3
Fanatic Member
Re: ActiveX Control - Transparency Problem
i can create a activex control for transparent and opacity for us in form or forms !
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|