Solved

Sort of overlay effect.....

Posted on 2004-10-24
206 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
Question by:imarshad
    6 Comments
     
    LVL 48

    Expert Comment

    by:Ryan Chong
    0
     
    LVL 27

    Expert Comment

    by:Ark
    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 44

    Expert Comment

    by:aikimark
    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
     
    LVL 13

    Author Comment

    by:imarshad
    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
    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:
    PAQed with points refunded (500)

    modulo
    Community Support Moderator
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: MongoDB Object-Document Mapper for NodeJS

    NodeJS (JavaScript on the server) is awesome, but some developers get confused about NoSQL when it comes to working in Node with MongoDB (NoSQL database). Do you need a better explanation of how to use Node.js with MongoDB? The most popular choice is the Mongoose library.

    Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
    I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    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…

    934 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

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now