For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > May 2005 > transparent label









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author transparent label
Benedikt Hübschen

2005-05-29, 3:55 am

Hi all,

I'm working on a unicode-replacement for the VB-Controls... i already
finished some controls (Edit, Frame,
CheckBox, OptionButton, ComboBox, ListBox, FileListBox und DirListBox) ...
now i want to make a label-control... but after hours of testing i have no
idea, how i can make the usercontrol transparent and displaying the caption
with DrawTextW.

The trick i found in the MSDN is not what i want to do (making a
background-picture from the area the control is displayed)

Does anyone now, how i can display the DrawTextW-'painted' Text and having
the background of the control invisible?

MfG. Benedikt Hübschen
-------------------------------
SilverMoon Software GbR - http://www.silvermoon-software.de



Rick Rothstein

2005-05-29, 3:55 am

> I'm working on a unicode-replacement for the VB-Controls... i already
> finished some controls (Edit, Frame,
> CheckBox, OptionButton, ComboBox, ListBox, FileListBox und DirListBox)

....
> now i want to make a label-control... but after hours of testing i

have no
> idea, how i can make the usercontrol transparent and displaying the

caption
> with DrawTextW.
>
> The trick i found in the MSDN is not what i want to do (making a
> background-picture from the area the control is displayed)


You might not be able to make it any simpler.

> Does anyone now, how i can display the DrawTextW-'painted' Text and

having
> the background of the control invisible?


Perhaps this will help you out
http://www.planetsourcecode.com/vb/...=24680&lngWId=1

Rick - MVP

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com