|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
FIX: Magnifier display stops on edges of screen The information in this article applies to: SUMMARY DevArticles provides step-by-step instructions to making a desktop magnifier. However, when the mouse goes near the edges of the screen, the magnifier's display stops until the mouse is brought away from the edge of the screen. RESOLUTION Comment out the following lines: Code:
If cp.X - offsetX >= 0 And cp.X + offsetX < hr Then cp.X = hr
If cp.Y - offsetY > 0 And cp.Y + offsetY >= vr Then cp.Y = vr
And: Code:
End If
End If
Then replace them with the following lines: Code:
If cp.X - offsetX < 0 Then cp.X = 0 + offsetX
If cp.X + offsetX > hr Then cp.X = hr - offsetX
If cp.Y - offsetY < 0 Then cp.Y = 0 + offsetY
If cp.Y + offsetY > vr Then cp.Y = vr - offsetY
STATUS The article still contains this error. MORE INFORMATION The form can also be made resizeable by changing the BorderStyle property to 2 or 5, and adding this sub: Code:
Private Sub Form_Resize() VScroll1.Left = Form1.ScaleWidth - VScroll1.Width VScroll1.Height = Form1.ScaleHeight - StatusBar1.Height End Sub Last reviewed: 12/06/2003 Last edited by Kilyn : June 12th, 2003 at 07:31 PM. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > FIX: Magnifier display stops on edges of screen |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|