- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2015-5-18 10:05 ½s¿è
¦^´_ 9# PKKO
¸Õ¸Õ¬Ý¦Û¤vÁY©ñ.
³oªí³æªºµ{¦¡½X- Option Explicit
- Dim X As Double, Y As Double, e As Control
- Private Sub UserForm_Initialize() 'ªí³æªì©l¤Æªºµ{¦¡
- Dim e As Control
- X = Width
- Y = Height
- For Each e In Me.Controls
- e.Tag = e.Top & "," & e.Left & "," & e.Width & "," & e.Height & "," & e.Font.Size
- Next
- End Sub
- Private Sub UserForm_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
- 'µo¥Í¦b·í¨Ï¥ÎªÌ«ö¤F·Æ¹«Áä®É¡CMouseDown µo¥Í©ó¨Ï¥ÎªÌ«ö¤U·Æ¹«Áä****
- Dim xZoom As Double
- If Shift = 2 Then 'Ctrl Áä
- Select Case Button '·Æ¹«
- Case 1 '«ö¤U¥ª·Æ¹«Áä¡C: ©ñ¤j
- xZoom = 1.2 '©ñ¤j %2
- Case 2 '«ö¤U¥k·Æ¹«Áä¡C: ÁY¤p
- xZoom = 0.8 '©Ò¤p %2
- End Select
- Zoom_UserForm xZoom 'ªí³æÁY©ñµ{¦¡
- ElseIf Shift = 1 Then 'Shift Áä +¥ô¤@·Æ¹««öÁä
- Revert_UserForm 'ªí³æÁÙì쥻¤j¤p
- End If
- End Sub
- Private Sub Zoom_UserForm(xZoom As Double) 'ªí³æÁY©ñ
- Width = Width * xZoom
- Height = Height * xZoom
- For Each e In Controls
- With e
- .Top = .Top * xZoom
- .Left = .Left * xZoom
- .Width = .Width * xZoom
- .Height = .Height * xZoom
- .Font.Size = .Font.Size * xZoom
- End With
- Next
- End Sub
- Private Sub Revert_UserForm() 'ªí³æÁÙì쥻¤j¤p
- Dim xTag As Variant
- Width = X
- Height = Y
- For Each e In Me.Controls
- With e
- xTag = Split(.Tag, ",")
- .Top = xTag(0)
- .Left = xTag(1)
- .Width = xTag(2)
- .Height = xTag(3)
- .Font.Size = xTag(4)
- End With
- Next
- End Sub
½Æ»s¥N½X |
|