Re: A83: Re: arrow selecting
[Prev][Next][Index][Thread]
Re: A83: Re: arrow selecting
I think he means the inversed text as the highlight. Well I used something
like this to do it.
getkey:
call _getkey
cp kUp
jp going_up
cp kDown
jp going_down
;CODE.....
;DISPLAY HIGHLIGHTED CHARACTER, C = Cursor Location
ld c,0 ;cursor location (0)
start:
set 3,(IY+5) ;inverse text
ld hl,first_text
ld a,c
cp 0
ld de,two
jp z,highlight
res 3,(IY+5)
call _puts
two:
set 3,(IY+5)
ld hl,second_text
ld a,c
cp 1
ld de,three
jp z,highlight
res 3,(IY+5)
call _puts
three:
etc....
highlight:
call _puts
res 3,(IY+5)
ld hl,de
jr (hl) ;jump to the next location
James Matthews wrote:
> > How does the concept of an arrow selecting a object work, like in aurora?
> I
> > am a bit stumped. : )
>
> Well, using a program like my Ti-Mouse, then when the user presses 2nd, or
> whatever, it would then convert the x and y coordinates into coordinates in
> terms of icon sizes (divide by eight, or whatever), and return the icon at
> that coordinate, I suppose...:)
>
> James (matthews@tkb.att.ne.jp)
>
> ICQ: 7413754
> http://home.att.ne.jp/gold/tomcat21/index.html
> http://library.advanced.org/18242/
References: