aldweb

Fermer I. aldweb

Fermer II. Gratuitiels PC

Fermer III. Gratuitiels Palm

Fermer IV. Partagiciels Palm

Fermer V. iziBasic Palm

Fermer VI. Connaissance Palm

Fermer VII. Ordinateur Poche

Fermer VIII. miniPortail

Spécial !



Version mobile
de l'aldweb Site

m.aldweb.com


Ni Français, ni Anglais ?

Essayez donc l'un de ces drapeaux :
[de] [es] [it] [pt]
Recherche




Météo / Spam / www

Météo Lyon


aldweb contre le SPAM


Newsletter
Pour avoir des nouvelles de ce site, inscrivez-vous à notre Newsletter.
S'abonner
Se désabonner
298 Abonnés
Sites web de la famille

Webmaster - Infos
News Amis
Visites

   visiteurs

   visiteurs en ligne

Sondage
Comment trouve-tu le nouvel habillage de l'aldweb Site ?
 
Superbe !
Joli
Moyen
Moche...
Résultats
forum.gifForum - iziBasic - Sujet n°1635

Forum - Forum
iziBasic - iziBasic


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

actif  Sujet n° 1635  Drawing a circle

le 08/04/2009 @ 03:23
par Gary

Anonyme



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
Ecrire à Gary   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1
--------
le 09/04/2009 @ 10:13
par Gary

Anonyme

visiteur
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
Ecrire à Gary   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 2
--------
le 19/04/2009 @ 12:48
par aldweb

Anonyme

visiteur
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
Ecrire à aldweb   Poster une réponse  Haut
actif sujet actif   clos sujet clos   Important! Important!   Nouveau Nouveau message   -   Rectifier Rectifier message   Clôturer Clôturer sujet   Remonter Remonter
[]
Catégories de discussion  Forum 



 
^ Haut ^