Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Sort of overlay effect.....

Posted on 2004-10-24
7
Medium Priority
?
218 Views
Last Modified: 2010-05-02
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
Comment
Question by:imarshad
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 28

Expert Comment

by:Ark
ID: 12409210
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
 
LVL 46

Expert Comment

by:aikimark
ID: 12416564
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 13

Author Comment

by:imarshad
ID: 12587581
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
 
LVL 13

Author Comment

by:imarshad
ID: 12587657
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
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12624146
PAQed with points refunded (500)

modulo
Community Support Moderator
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question