Results 1 to 5 of 5

Thread: Control to Click on a region within an image and then color it - HELP!

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089

    Post

    What was wrond with the one I did for you?

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089

    Post

    How ironic, I spelt wrong wrong.

  3. #3
    Member
    Join Date
    Feb 2000
    Location
    Allen Park, MI, Wayne
    Posts
    39

    Post

    Hi Sam, nothing was wrong with it at all.. I'm trying to see if there's come kind of a mapped image control to take the code out of it.

  4. #4
    New Member
    Join Date
    Dec 2000
    Location
    MN
    Posts
    2

    Did you find your answer?

    Did you find a control fitting that description? I am looking for something like that as well. I get the impression that someone did this through code. Any tips (samples) on how this was approached?

  5. #5
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Bethel, North Carolina, USA
    Posts
    987
    I think these are the API calls you will need to accomplish this, however it will take a lot of time to define the boundaries of each country.

    Code:
    Declare Function CreatePolygonRgn Lib "gdi32" Alias "CreatePolygonRgn" (lpPoint As POINTAPI, ByVal nCount As Long, ByVal nPolyFillMode As Long) As Long
    Declare Function PtInRegion Lib "gdi32" Alias "PtInRegion" (ByVal hRgn As Long, ByVal x As Long, ByVal y As Long) As Long
    Declare Function FillRgn Lib "gdi32" Alias "FillRgn" (ByVal hdc As Long, ByVal hRgn As Long, ByVal hBrush As Long) As Long
    {Insert random techno-babble here}

    {Insert quote from some long gone mofo here}

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width