home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ User's Journal & Wi…eveloper's Journal Tools
/
C-C__Users_Journal_and_Windows_Developers_Journal_Tools_1997.iso
/
sbdemo
/
p19.sb
< prev
next >
Wrap
Text File
|
1996-10-24
|
886b
|
36 lines
DIM rc As RECT
GLOBAL wAvi%
DECLARE Sub OnPlay()
DECLARE SUB OnExit()
CompoundExtractFile("","hellow.avi")
SBV_BORDER = 10
SBV_BORDERSTYLE = SBC_BORDERCOLOR
SBV_DARKCOLOR = RGB&(192,192,192)
wAvi% = PopupAvi( SBC_CENTER, SBC_CENTER, 0, 0, "hellow.avi",\
SBC_FIXEDPOS or SBC_MODELESS or SBC_NOPLAY or SBC_TOPMOST)
ON EVENT SBEP_DLGCONT OnPlay
ON EVENT SBEP_DLGSTOP OnExit
SBV_CONTTEXT = "&Play"
SBV_STOPTEXT = "&Exit"
RectWin(wAvi%, rc)
wText% = PopupTextBox(rc.left, rc.bottom, rc.right-rc.left, 90,\
"Click Play to watch the movie", SBC_MODELESS or SBC_FIXEDPOS\
or SBC_3D or SBC_ALIGNCENTER or SBC_TOPMOST)
sleep 0
static SUB OnPlay()
PopupChangeAvi(wAvi%, SBC_FIRST)
PopupChangeAvi(wAvi%, SBC_PLAY)
End Sub
static SUB OnExit()
PopupClose(wAvi%)
Kill("hellow.avi")
wakeup
End Sub