Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Code Samples & Tips
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Code Samples & Tips Share your recent discoveries and ideas with other users.


X,Y coordinates


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-24-2007, 07:00 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,112
Default X,Y coordinates

Hi

I wasn't too sure if I should post this Here or in BUGs Report...

when using mouse events in portrait mode, the x,y coordinates are inverted to our perspective..
Confused?
If you use this code

Sub myform_mousedown(x,y)
msg(x&";"y)
End Sub

The coordinates are related ALWAYS to landscape mode, being the x the height and y the width...so in Portrait, they are inverted, being x the width and y the height...

Hope this helps someone...
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

Last edited by Cableguy : 05-24-2007 at 07:22 PM.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Context Menu X,Y coordinates evaklim Questions & Help Needed 1 10-16-2007 01:04 PM


All times are GMT. The time now is 02:52 AM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0