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