+ Reply to Thread
Results 1 to 2 of 2

Creating a "sensitive regions" image on a form

Hybrid View

  1. #1
    Zorro
    Guest

    Creating a "sensitive regions" image on a form

    Hi all
    I would want to create a "sensitive regions" image on a form. For example,
    it would be a european map where the user could select each country.
    I know I could do it on a sheet using transparent shapes (one for each
    country) on top of the image, but how could I do it on a UserForm?

    Thank you



  2. #2
    Harald Staff
    Guest

    Re: Creating a "sensitive regions" image on a form

    Hi

    You can use labels, transparent without border and caption, and code their
    mousedown, click and/or mouseup events. Or you could "simply" hardcode the
    regions of the image; far more work, far less components. Here a simple NSWE
    example:

    Private Sub Image1_MouseUp(ByVal Button As Integer, _
    ByVal Shift As Integer, _
    ByVal X As Single, ByVal Y As Single)

    Dim S As String

    Select Case X
    Case 0 To Image1.Width / 2
    S = " WEST"
    Case Else
    S = " EAST"
    End Select
    Select Case Y
    Case 0 To Image1.Height / 2
    S = "NORTH " & S
    Case Else
    S = "SOUTH " & S
    End Select

    MsgBox S
    End Sub

    HTH. Best wishes Harald

    "Zorro" <zorro@vega.fr> skrev i melding
    news:44658501$0$20170$8fcfb975@news.wanadoo.fr...
    > Hi all
    > I would want to create a "sensitive regions" image on a form. For example,
    > it would be a european map where the user could select each country.
    > I know I could do it on a sheet using transparent shapes (one for each
    > country) on top of the image, but how could I do it on a UserForm?
    >
    > Thank you
    >
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1