Results 1 to 2 of 2
  1. #1
    brharrii's Avatar
    brharrii is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Seattle, WA
    Posts
    63

    Custom Button image being clipped when resized

    What I'm using
    Access 2010
    .jpg image downloaded from the internet
    - Original Size 3.125 x 3.125
    - Desired Size 0.3 x 0.3




    My objective is to accomplish all 3 conditions at the same time:

    1 - Use a custom image as a button

    2 - Be able to resize the image to whatever size I need without clipping the edges / top of the image

    3 - When hovering over the image / button, the curser should change to the hyperlink finger



    What I've Tried:

    First I tried adding a button to my form editing the picture property to embed the jpg image I have saved on my hard drive. This seemed to work great at first, the button looked just like my image until I attempted to resize it to a smaller size. As I reduced the size of the button, instead of reducing the size of the image, it zoomed in towards the center of the image; in other words, the image stayed the same size, reducing the size of the button only reduced the visible portion of the image.

    Second, I tried adding the image as a picture to my form and adding an on-click event that would run the macro I was going to have the button run. The image was resizeable but the hyperlink finger didn't appear when I hovered over it.


    Does anyone have any suggestions on how I might achieve the desired effects from both attempts at the same time?

    Thank you

    Bruce

  2. #2
    brharrii's Avatar
    brharrii is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Seattle, WA
    Posts
    63
    I figured out a solution that seems to be working, What I did was:

    1. Upload the image as a picture to the form

    2. Resize as desired

    3. add a button to the the form

    4. Set button settings to invisible and to show hyperlink hand when hovered

    5. Right click button -> Position -> Bring to front

    6. Size the button to match the size of the image

    7. Lay the button down over the image.

    Now I have a hand that shows up when I hover over my custom sizeable image, Yay!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Custom button click to Built-in pop-up filter
    By LindaRuble in forum Reports
    Replies: 1
    Last Post: 08-23-2012, 07:00 PM
  2. making button image animated
    By chickenguru in forum Forms
    Replies: 0
    Last Post: 05-23-2012, 10:12 PM
  3. Click button to open a new image
    By tia in forum Forms
    Replies: 2
    Last Post: 10-10-2011, 11:03 AM
  4. OnClick Cmd Button vs Image
    By mseeker22 in forum Programming
    Replies: 1
    Last Post: 07-14-2011, 08:28 AM
  5. Replies: 1
    Last Post: 07-27-2010, 02:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums