home *** CD-ROM | disk | FTP | other *** search
- property pLocalList, spriteNum
-
- on beginSprite
- pLocalList = sendSprite(spriteNum, #getMyDropDownList)
- end
-
- on keyDown
- if key() = TAB then
- set the selStart to the selEnd
- sendSprite(spriteNum, #doListSelect)
- else
- if pLocalList = VOID then
- pLocalList = sendSprite(spriteNum, #getMyDropDownList)
- end if
- curPos = the selStart
- t = char 1 to curPos of the text of the member of sprite(spriteNum)
- t = t & key()
- paz = "TRUE"
- repeat with i = 1 to pLocalList.count
- if t = char 1 to t.length of pLocalList[i] then
- sprite(spriteNum).member.text = pLocalList[i]
- set the selStart to curPos + 1
- set the selEnd to pLocalList[i].length
- paz = "FALSE"
- exit repeat
- end if
- end repeat
- if paz = "TRUE" then
- pass()
- end if
- end if
- end
-