Thread: Pocket Weather
View Single Post
  #107 (permalink)  
Old 12-18-2008, 12:57 AM
digitaldon37 digitaldon37 is offline
Basic4ppc Veteran
 
Join Date: Jan 2008
Posts: 215
Default

Quote:
Originally Posted by klaus View Post
Yes it could be restricted to a certain rectangle.

The principle was the following.
Swiping left to right or top down increased the location index by one if there is a location. If there is no location it increased one more till the end.
Swiping right to left or bottom to top decreased the index. So there shouldn't have been an unintended swipe.
The swip must be, at the moment, at least 50 pixels wide between MouseDown and MouseUp. This could of course also also be changed.
The swipe works in all 3 screens, today, detail anf fourcast.

In the attached file the swipe is limited to the rectangle you gave.
The swipe is limited to right-left and left-right only and still 50 pixel min. (and now 100 pixel on a VGA sreen). I increased the version number t0 0.45.
The values are in variables so it would be easy to change them in the Form1.MouseUp routine.

Best regards.
Thanks Klaus! This works great.
Reply With Quote