473,324 Members | 2,254 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

MS Access flicks the image area when the image size increased on mouse over

66 64KB
Hi Team,

I am back with a different question today, I have developed a form with few image which actually acts as icons shortcut for different forms in my MS Access file. I decided to increase the image size when the user MOUSEOVER the images. So I increased the size of image in mouse over action.

But unfortunately the image increase action has some delay and the image flicks\blackout for a second during this action.

I tried to take a screen shot but I am not able to catch it in screenshot. So I am attaching my DB for your review.

Please advise how to avoid this flick and delay.

Thanks
Johny
Attached Files
File Type: zip Database4.zip (748.1 KB, 92 views)
Jan 5 '15 #1

✓ answered by twinnyfo

johny,

Unfortunately, that is the nature of the beast when using the MouseMove Event and resizing images. I think Access tries to repaint the form on every pixel of movement which causes this behavior.

However, you can alleviate this by adding a check to see if the image is enlarged or not. Just check the Height or Width of the image you are trying to enlarge. If it is already enlarged, do nothing, otherwise, enlarge it.

Unfortunately you will have to do this with all your images, and also make sure you add the Forms MouseMove event to restore the images to their normal size (when you navigate away from the image.

Hope this makes sense.

Standing by for further assistance if needed.

3 1341
twinnyfo
3,653 Expert Mod 2GB
johny,

Unfortunately, that is the nature of the beast when using the MouseMove Event and resizing images. I think Access tries to repaint the form on every pixel of movement which causes this behavior.

However, you can alleviate this by adding a check to see if the image is enlarged or not. Just check the Height or Width of the image you are trying to enlarge. If it is already enlarged, do nothing, otherwise, enlarge it.

Unfortunately you will have to do this with all your images, and also make sure you add the Forms MouseMove event to restore the images to their normal size (when you navigate away from the image.

Hope this makes sense.

Standing by for further assistance if needed.
Jan 5 '15 #2
johny6685
66 64KB
So Sad.... As per your answer, this cannot be avoided in access..

Yes, I did that and you can download the attachment that has the code as you said.

Is there a way to do this in any other way? Like using browser window and any other scripts?
Jan 5 '15 #3
twinnyfo
3,653 Expert Mod 2GB
No, I think using the image control as you have it is the way to go. I saw very little flickering when I added the size check. It was barely noticeable during resize, and completely gone when the action was already complete.
Jan 5 '15 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Matt Bostock | last post by:
Hi, Please see: http://www.drfunkenstein.net/catalogue/categories/fancydress/75/items/6417/ When you move your mouse over the large image on the left (of the man with the afro) (AKA...
2
by: meganrobertson22 | last post by:
Hi- I'd like to try to have text displayed when I move my mouse over a command button. For example: let's say I have a form with 3 different command buttons. Each command button launches a...
5
by: Martha | last post by:
When I move my mouse over a hyperlink component, the hyperlink does not change color. How do I change the color of a hyperlink when the mouse goes over the hyperlink? or Change the color of a...
1
by: Gap | last post by:
Hello all, I want to create a page with an image and when the cursor is moving over the image (e.g. over text on the image the text is highlighted or changes color or something similar. So that...
4
kestrel
by: kestrel | last post by:
you know how some images and links on some websites, hav this little yellowish box appear, when you put yout mouse over that image or link? know what i mean it has a short description of that image...
1
by: pekyalo | last post by:
I'm seeking to know how i can create a mouse over drop down menu such that when one hopers the mouse over the text menu, a list of menu links is displayed. Please help me to know how to create such...
3
by: Vinutha | last post by:
I am desiging some webpages. so if we see this website www.symphonysv.com, there we can see some text in the middle row. when we point those texts with mouse, the image in the side changes. ...
0
by: Kfir Marouani | last post by:
Hi, I've tried looking but couldn't find any relevant information about it. I have an image button that when I move my mouse over it I want it to show some string in a yellow small box (tool-tip)....
1
by: uselessjavaprogrammer | last post by:
hi im trying to get something working that when you place the mouse over a photo it opens a larger one on top. i found some code on the web but cannot get it to work. i've taken a look with the...
3
by: erinadmin | last post by:
I have a report in Access 2007. The image is linked to the surname and no problem. However, all surnames don't have an image, is there a way to shrink the image area when no picture is available? ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.