ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old June 12th, 2003, 07:27 PM
Kilyn Kilyn is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Space
Posts: 5 Kilyn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Kilyn
Exclamation FIX: Magnifier display stops on edges of screen


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.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > FIX: Magnifier display stops on edges of screen


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT