Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Image control with hwnd or transparent picturebox

26 views
Skip to first unread message

-mhd

unread,
Oct 21, 2010, 6:08:02 PM10/21/10
to
I need either an image control with a handle or a picturebox with a transparent
background capable of displaying icons with their own transparency regions as
well.

I have a messenger type of form that has a gradient background therefore the
transparency requirement instead of just setting a matching picturebox
background color. I also want to use a custom tooltip class that requires a
handle otherwise the image control would be perfect.

Any ideas where I can find a user control or ActiveX that fits the bill?

-mhd

Message has been deleted
Message has been deleted

Abhishek

unread,
Oct 21, 2010, 8:42:43 PM10/21/10
to
try this http://www.leandroascierto.com.ar
on this site search for ucImage and AlphaIcon32, these are very lightweight.
LaVolpe alpha image control is also good but its known to be buggy.

--
abhishek
http://vb6zone.blogspot.com


"-mhd" <not_...@invalid.com> wrote in message
news:s1e1c69fikf27lt02...@4ax.com...


ralph

unread,
Oct 22, 2010, 3:33:14 AM10/22/10
to
On Thu, 21 Oct 2010 20:02:20 -0400, -mhd <not_...@invalid.com> wrote:

>Ed <nos...@hotmail.com> wrote:
>
>>Nice free control here, [vb6]Alpha Image Control
>>http://www.vbforums.com/showthread.php?s=75d95724f6742383c1f09df735d4d2f5&t=630193
>>
>>It doesn't have a hWnd property but I'd guess all you'd have to do is add the hWnd property to the control, then when
>>using the control on say a form get the handle when the MouseEnter or other event is fired and call your tooltip code
>>or whatever.
>
>That is a sweet control for sure but the following point you make gives me an
>idea.
>
>>' add the hWnd property to a user control
>>Public Property Get hWnd() As Long
>> hWnd = UserControl.hWnd
>>End Property
>
>I've never made my own user control before, but could I just host an image
>control in one and give it the hWnd property?
>
>If so any good tutorials on adding a property to an existing control by making a
>user control?
>

Open the Project -> Add -> User Control and go from there.
Doing is faster than reading. <g>

http://visualbasic.freetutes.com/learn-vb6-advanced/lesson13/p7.html

You can get into the nastier details at other online sites once you
learn the jargon.

Note: The above (as most beginner tutorials seem to be) shows how to
create a separate OCX or ActiveX Control. However, you can just as
easily add a UserControl (.ctl file) to an existing project.

-ralph

Dee Earley

unread,
Oct 22, 2010, 4:06:18 AM10/22/10
to
On 22/10/2010 01:02, -mhd wrote:
> Ed<nos...@hotmail.com> wrote:
>
>> Nice free control here, [vb6]Alpha Image Control
>> http://www.vbforums.com/showthread.php?s=75d95724f6742383c1f09df735d4d2f5&t=630193
>>
>> It doesn't have a hWnd property but I'd guess all you'd have to do is add the hWnd property to the control, then when
>> using the control on say a form get the handle when the MouseEnter or other event is fired and call your tooltip code
>> or whatever.
>
> That is a sweet control for sure but the following point you make gives me an
> idea.
>
>> ' add the hWnd property to a user control
>> Public Property Get hWnd() As Long
>> hWnd = UserControl.hWnd
>> End Property
>
> I've never made my own user control before, but could I just host an image
> control in one and give it the hWnd property?

But then you loose the transparency.
It manages it so easily as it is windowless and it shows the window it
is drawn onto.
Which will now be your user control.

Does your tooltip require the hWnd of the control to draw over or will
just the form's hWnd do?

--
Dee Earley (dee.e...@icode.co.uk)
i-Catcher Development Team

iCode Systems

(Replies direct to my email address will be ignored.
Please reply to the group.)

-mhd

unread,
Oct 22, 2010, 9:30:55 AM10/22/10
to
Dee Earley <dee.e...@icode.co.uk> wrote:

>But then you loose the transparency.
>It manages it so easily as it is windowless and it shows the window it
>is drawn onto.
>Which will now be your user control.
>
>Does your tooltip require the hWnd of the control to draw over or will
>just the form's hWnd do?

I need the control hWnd plus I need to differentiate between 2 icons for custom
tooltip messages.

Loosing transparency is a deal breaker though.

-mhd

ralph

unread,
Oct 22, 2010, 12:14:16 PM10/22/10
to
On Fri, 22 Oct 2010 09:30:55 -0400, -mhd <not_...@invalid.com> wrote:


>
>Loosing transparency is a deal breaker though.
>

You can create a transparent control.

A 'control' is just a control - whether included pre-built with a
application development kit, built by a toolkit, scratch-built, or
bought as a pricey commercial product. There are many kinds of
controls with many kinds of attributes - some development platforms
and toolkits make it easier to create one kind over another.

-ralph

0 new messages