By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,256 Members | 1,610 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,256 IT Pros & Developers. It's quick & easy.

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

P: 66
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, 70 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.

Share this Question
Share on Google+
3 Replies


twinnyfo
Expert Mod 2.5K+
P: 3,482
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

P: 66
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
Expert Mod 2.5K+
P: 3,482
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

Post your reply

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