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

Forum - Forum
iziBasic - iziBasic


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

active  Topic # 1635  Drawing a circle

08/04/2009 @ 03:23
by Gary

Anonymous



My next project needs a circle drawn on the screen and I have taken a look at the code in IBClock, but I can't get it to work. I tried entering different numbers for H and M, but all that does is draw the hands of the clock not the circle.

_DrawClock:
I=H : IF I>=12 LET I=I-12
I=M/60+I-3*PI/6
X=COS(I)*20+120
Y=SIN(I)*20+55
LINE 120,55 TO X,Y
I=M-15*PI/30
X=COS(I)*25+120
Y=SIN(I)*25+55
LINE 120,55 TO X,Y
I=S-15*PI/30
X=COS(I)*30+120
Y=SIN(I)*30+55
LINE 120,55 TO X,Y
RETURN


I have a blank form defined and the code above in my code. At first nothing was printed on the screen. Then I gave H and M a value. It printed the hands of the clock not circle.

Can someone get me started? Once I get a circle to draw I can go from there.

Thanks
Gary
Write to Gary   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/2009 @ 10:13
by Gary

Anonymous

visitor
After studying the Drawclock routine I realized that it is really drawing the hands of the clock. If I would have looked further than my nose I would have seen the circle draw routine in Drawscreen, which is easy understand.

One more question.

What is the difference between HIGHRES and SETRES?

When I use HIGHRES it works, but when I use SETRES it don't and can't see any difference in the manual

In code Z=HIGHTRES(1) says Z would equal 1 if my screen has a highres screen. When I use this it also turns on the high resolution screen and Z=HIGHRES(0) turns it off. So what is SETRES used for and how is it used. Every time I used it I got either an error or the program acted strange.

Thanks
Gary
Write to Gary   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
--------
19/04/2009 @ 12:48
by aldweb

Anonymous

visitor
Hello Gary,

The only difference between HIGHRES and SETRES is that HIGHRES is a function and returns a status of the resulting resolution mode when SETRES is a statement and returns nothing.
The internal code for these two keywords is therefore at 95% the same and it is shared (for obvious optimization reasons).

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 ^