aldweb

Close I. aldweb

Close II. PC Freeware

Close III. Palm Freeware

Close IV. Palm Shareware

Close V. iziBasic Palm

Close VI. Palm Knowledge

Close VII. Pocket Computer

Close VIII. miniPortail

Special !



Mobile version of
the aldweb Site

m.aldweb.com


Neither French, nor English?

Try one of these flags then:
[de] [es] [it] [pt]
Search




Weather / Spam / www

Lyon Weather


aldweb against spam


Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
298 Subscribers
Family's web sites

Webmaster - Infos
Friends News
Visits

   visitors

   visitors online

Poll
What do you think of the new design of the aldweb Site?
 
Great !
Beautiful
Average
So ugly...
Results
forum.gifForum - iziBasic - Topic #1144

Forum - Forum
iziBasic - iziBasic


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257

active  Topic # 1144  Problem with PenX and PenY

03/03/2005 @ 16:45
by Lugato

Anonymous



Hi Ald,

I have a little problem with the PenX and PenY command, when I run a program with highres using these commands the result give me only numbers between 0 to 160 .

  Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 1
--------
03/03/2005 @ 20:50
by aldweb

Anonymous

visitor
Hello Lugato,

Not all Palm OS APIs support the high resolution mode. In other words, it is a real pain to work with High Res. I only know to do it by the "try and adjust" process!

In the case of the PENX and PENY functions, "try" tells us that the return value is between 0 and 159.

This is no big deal as pen precision is superior to 1 pixel (because the pen diameter which touches the screen is wider than one pixel on the touchscreen).

So, in your case "adjust" could be:
X=2*PENX
Y=2*PENY

Cheers,

@+
aldweb
Write to aldweb   Post an answer  Top
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 



 
^ Top ^