home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 May
/
CHIPCD5_98.iso
/
software
/
testsoft
/
carr
/
IRL.CST
/
00017_Script_s_teksthandler
< prev
next >
Wrap
Text File
|
1998-01-28
|
1KB
|
32 lines
on exitFrame
global g_scrltimer,g_bscrstate,g_textmem,g_listLen,g_ListSize,g_slspr,g_slVl
global g_sliderSize,g_sliderTop
-- obsluga samopowtarzania scrolla
if (the timer-g_scrltimer)>30 then
if g_bscrstate=#Up then
set tmp=the scrollTop of g_textmem
if tmp>15 then set the scrollTop of g_textmem to tmp-15
else set the scrollTop of g_textmem to 0
end if
if g_bscrstate=#Down then
set tmp=the scrollTop of g_textmem
if (tmp+g_ListSize)<(g_ListLen+15) then
set the scrollTop of g_textmem to tmp+15
end if
end if
end if
-- obsluga suwaka
if the locV of sprite g_slspr<>g_slVl then
set tmp=((the locV of sprite g_slspr)-g_sliderTop)
set tmp2=tmp*(g_ListLen-g_ListSize)/g_sliderSize
set the scrollTop of g_textmem to tmp2
set g_slVl=the locV of sprite g_slspr
end if
end
on mouseUp
global g_slspr,g_slramkaspr
if rollOver(g_slramkaspr) then set the locV of sprite g_slspr to the mouseV
end