[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 223
  • Last Modified:

Sort of overlay effect.....

I want to display some Text on a Map. One obvious way is to use a Label control and then make it visible at the time I need it...... But I want it to be semi-transparent i.e the overlay effect......How can this be done?
The Map is displayed on MapObjects control......It has a hDC......So can I use some blitting technique to blit text on the map semi-transparently?
A code snippet will be appreciated......

Imran
0
imarshad
Asked:
imarshad
1 Solution
 
ArkCommented:
Another way - using AlphaBlend API from msimg32.dll. See my sample at http://freevbcode.com/ShowCode.Asp?ID=1501

ryancys, hello from China! :) Malaysia is much more close from here than from Russia :)
0
 
aikimarkCommented:
You will be unable to use a label control (with transparent background) for this purpose.  The label
sits on a different graphical layer than other controls.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
imarshadAuthor Commented:
Sorry about the delay.....Since it was the holy month of Ramazan for the Muslims so I couldnot spend much time on Internet so thats why this Question is still open.....

Imran
0
 
imarshadAuthor Commented:
As far as the Question is concerned the closest that I have been is by using this code

http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=55388&lngWId=1

I changed the Border Style of the Form to None and inserted a Label on the form and I simply show/hide my form with text at a position......This looks great with one deficiency....The Label's Text is also faded out.....Can some of you help me to get out of this drawback so that the Text on the Form's label donot fade out with the Form????? Or suggest some better way....

Imran
0
 
moduloCommented:
PAQed with points refunded (500)

modulo
Community Support Moderator
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now