home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows CE - The Ultimate Companion
/
ROMMAN_CE.iso
/
Files
/
Programming
/
Basice
/
LIB
/
GR_YAXIS.UTL
< prev
next >
Wrap
Text File
|
1997-03-14
|
586b
|
31 lines
procedure gr_yaxis(min#,max#,tick#,minticks%,pos#,left%,right%)
utmp# = tick#/minticks%
uy# = min#
up% = 0
u1% = left%/2
u2% = right%/2
tickcnt% = 0
loop
call gr_plot(pos#,uy#,up%)
up%=1
if tickcnt% = 0 then
call line(gr_curx%-left%,gr_cury%,gr_curx%+right%,gr_cury%)
else
call line(gr_curx%-u1%,gr_cury%,gr_curx%+u2%,gr_cury%)
endif
uy#=uy#+utmp#
tickcnt% = tickcnt%+1
if tickcnt% = minticks% then
tickcnt% = 0
endif
while uy# < (max# + utmp#/2)
endloop
endproc