home *** CD-ROM | disk | FTP | other *** search
- OPT MODULE
-
- MODULE 'tools/EasyGUI',
- 'intuition/intuition'
-
- EXPORT OBJECT vanilla OF plugin
- code:PTR TO LONG,
- hit,
- qual
- ENDOBJECT
-
- PROC vanilla(code) OF vanilla
- self.code:=List(ListLen(code))
- ListCopy(self.code,code)
- self.hit:=-1
- ENDPROC
-
- PROC end() OF vanilla
- DisposeLink(self.code)
- ENDPROC
-
- PROC will_resize() OF vanilla IS FALSE
-
- PROC min_size(ta,fh) OF vanilla IS 0,0
-
- PROC render(ta,x,y,xs,ys,w:PTR TO window) OF vanilla IS EMPTY
-
- PROC message_test(imsg:PTR TO intuimessage,win:PTR TO window) OF vanilla
- DEF i=0,bool,return=FALSE
- IF (imsg.class=IDCMP_VANILLAKEY)
- ->PrintF('\d\n',imsg.code)
- REPEAT
- IF (bool:=(imsg.code=self.code[i]))
- self.hit:=self.code[i]
- return:=TRUE
- ENDIF
- i++
- UNTIL (i=ListLen(self.code)) OR bool
- ENDIF
- ENDPROC return
-
- PROC message_action(class,qual,code,win) OF vanilla
- self.qual:=qual
- ENDPROC TRUE
-