josephbupe
Registered User.
- Local time
- Today, 20:58
- Joined
- Jan 31, 2008
- Messages
- 247
Hi,
I am building a database for a local museum in Lusaka to manage art works images, following the idea by Lebans which allows one to zoomin and zoomout an image.
ZoomIn:
ZoomOut:
What I want now is to include a button that will refresh image controls to their original size view on form if they were zoomedin or zoomedout.
Kindly see attached sample am working on. I will appreciate.
Joseph
I am building a database for a local museum in Lusaka to manage art works images, following the idea by Lebans which allows one to zoomin and zoomout an image.
ZoomIn:
Code:
Dim intWidth As Integer
Dim intHeight As Integer
With Me![imageframe1]
intWidth = .Width
intHeight = .Height
.Width = intWidth * 1.05
.Height = intHeight * 1.05
.SizeMode = acOLESizeZoom
End With
' Allow Access time to Repaint Screen
' since we have Autorepeat set to TRUE for
' this Command Button
DoEvents
ZoomOut:
Code:
Dim intWidth As Integer
Dim intHeight As Integer
With Me![imageframe1]
intWidth = .Width
intHeight = .Height
.Width = intWidth / 1.05
.Height = intHeight / 1.05
.SizeMode = acOLESizeZoom
End With
' Allow Access time to Repaint Screen
' since we have Autorepeat set to TRUE for
' this Command Button
DoEvents
What I want now is to include a button that will refresh image controls to their original size view on form if they were zoomedin or zoomedout.
Kindly see attached sample am working on. I will appreciate.
Joseph