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 #1379

Forum - Forum
iziBasic - iziBasic


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

active  Topic # 1379  Box & BoxFilled

09/04/2006 @ 17:09
by Emerson

Anonymous



1) Why does the
BOX
command always draw boxes with thick lines even when HIGHRES 1 is set (compared to drawing with the
LINE
statement)?

2) In
HIGHRES 1
mode,
BOX 0,30 to 320,320
draws a box with the left border thin and the rest thick. This becomes fixed if I changed it to
BOX 1,30 to 320,320
.

3) Still in
HIGHRES 1
mode, BOX and BOXFILLED can start at 0,0 and end at 320,320 giving it a 321 pixel difference. Compared to LINE statement which can start at 0,0 and end at 319,319 which gives the correct 320 pixel difference.
  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
--------
09/04/2006 @ 22:22
by aldweb

Anonymous

visitor
Hello Emerson,

1) I do not get the same effect when using my IBPlot sample application in my Tungsten C. Could you give me more material to analyse what's happening?

2) I will check that. But it is true that, for BOX and BOXFILLED, I use an API that draws with one pixel difference to the absolute coordinates. So, I remember dealing with it to correct it... that might be the reason why you find yourself with a 1 pixel difference between the BOXFILLED and the LINE statements.

Overall, I get the feeling that I should build a code that draws BOXes myself, using 4 LINEs instead of using the box API from Palm...

Cheers,
aldweb


@+
aldweb
Write to aldweb   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 2
--------
10/04/2006 @ 17:15
by Emerson

Anonymous

visitor
In SETRES 0 (screen is 160x160)
The BOX statement draws boxes with line thickness the same as using LINE itself.

But in SETRES 1 (screen is 320x320)
The BOX statement still draws the same thick bordered box. LINE on the other hand, draws thinner lines.

My device is a Treo 650.

For consistency with coordinates, I used LINE instead to replace both BOX and BOXFILLED. It's kinda slower actually (noticeable for BOXFILLED) but it works.
  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 ^