home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Magazin 1996 September
/
CD_06_96.ISO
/
tb40mm.sbk
(
.txt
)
< prev
next >
Wrap
Asymetrix ToolBook File
|
1995-11-12
|
34KB
|
494 lines
*ClassTbl*
*ClassEntry*
*PTABLE*
*WINDOWSEG*
Viewer
*ICONRESTAB*
*ICONRESSEG*
*ICONRES*
Background
*OBJTABLE*
*IDTABLE*
*NAMETAB*
Rectangle
Ellipse
RoundedRectangle
Polygon
IrregularPolygon
AngledLine
Curve
Field
RecordField
ComboBox
Button
PaintObject
Picture
Hotword
*RHOTWORD*
Group
Stage
*TbxBase*
Iitemnum
Microsoft Windows with Multimedia is not present. No multimedia devices or widgets will work.
killtbkmmsbk
tbkmm.sbk
itemnum
Cancel
Warning! Altering the script for this system book may cause multimedia applications to break!
Proceed
author
killtbkmmsbk
"Microsoft Windows
fMultimedia
xpresent. No multimedia devices
widgets will work."
itemnum(
I tmplist
"Warning! Altering the
8may cause
applications
f"Proceed"
"Cancel"
DlgTitle
Multimedia System BookS
DlgTitle
Multimedia System Book
tbkmmversion
s Rmn
Tms Rmn
Arial
BOOK SCRIPT FOR THE MULTIMEDIA SYSTEM
tbkMCIchk cmd,notif,req,brk
ZretVal
sysErrorNumber
tbkmci(
syserrornumber<>0
tbkmmerrorstring(
tbkBitmapChk
-- When
]TBKBMP.DLL standalone, you should
modify
-- function
use the bitmap
reporter
tbkbmperrorstring(
brk<>
--Cover functions
--These allow authors
pass
device alias instead
tbkMCIPositionWindow devAlias,windowPos,flags
Zhwnd
9("status" &&
3 && "
","")
tbkPositionWindow(
tbkMCICenterWindow
&& "
","")
tbkCenterWindow(
tbkBitmapPositionWindow
&& "
tbkBitmapCenterWindow
&& "
tbkMCIGetWindowRect
&& "
","")
tbkGetWindowRect(
tbkBitmapGetWindowRect
&& "
4s_mminit
tbkMMInitializeSystem
-- guard against
4having been restored!
{ <>
stuff used
Hwidgets
X"tb40win.dll"
YieldApp()
<> 0
"TB40WIN.
xfound. Some
Z may
xwork"
X"tb40dlg.
OpenDlg(
<> 0
"TB40DLG.
tbkmmdevices
4s_mmdevices
-- stub so some
will
without ES boxes
checkdevice
-- General utility
-- Someday, ToolBook
Shave built-
data type checking
isNumber x
x + 0
--repair 3D
resizing them
sized
Zsnap, txCN, hi, lo
txClassName
K <>
"Repair 3D
f"&Yes"
"&No"
c"No"
sysSuspendMessages
recessed
c"3DFrame"
+ 15,
+ 15,\
+ 15,
"3DField"
"3DRect"
znothing
- 15,
- 15,\
- 15,
+ 15,
+ 15,\
+ 15,
-- Slider control
begins here
-- NOTES ABOUT IDENTIFIERS
-- s___ prefix ->
handler
only
c"Thumb"
___setSliderLimits
4s___v, s___min, s___max, s___p
down\
prevent updating
mouse
xmoved
"HSliderThumb"
loc -
___slidePos(
"VSliderThumb"
sliderPosition
___snapSlider\
(1 -
glide
width
height
p, s1, s2
b(0,(p - s1) /(s2 - s1))
thumb
-- Another
controlling
OldMin
OldMax
j(1,(
b(0,p)))
"vSliderThumb"
pOffset
) * (1-p)
newPos
"hSliderThumb"
) * p
-- Restore state
detentList
detents
catchRange
0 <>
ends
-- This initialization usually
runs ONCE, unless
app calls
tbkmmInitializeSystem
asure MME
loaded
X"mmsystem.
killtbkmmsbk
X"mtb40mm.
--
private (exported, but undocumented)
tbkmmloadextensions( )
-- The
these are
standard
J entry points
tbkmmversion()
-- MCI central interface
-- BMP
tbkGraphic(
-- parallel
MMSYSTEM
tbkTimerStart(
tbkTimerStop(
tbkTimerCapability()
-- Utility
\ MilliSecFromMSF(
\ MilliSecFromHMS(
\ MilliSecFromSMPTE(
MSFFromMilliSec(
HMSFromMilliSec(
SMPTEFromMilliSec(
-- Translation
tbkMMTranslate(
-- Mixer
tbkMMMixer(
<> 0
"MTB40MM.
link failed"
support
<> 0
-- End
Script
0v#n#n#
.'+ +F
tbkmmerrorstring
tbkmci
tbkMCIchk
.'+ +F
tbkmmerrorstring
tbkBitmap
tbkBitmapChk
tbkMCI
%tbkPositionWindow
window handle
status
tbkMCIPositionWindow
tbkCenterWindow
tbkMCI
window handle
status
tbkMCICenterWindow
tbkBitmap
window
%tbkPositionWindow
status
tbkBitmapPositionWindow
tbkBitmap
tbkCenterWindow
window
status
tbkBitmapCenterWindow
tbkMCI
tbkGetWindowRect
window handle
status
tbkMCIGetWindowRect
tbkBitmap
window
tbkGetWindowRect
status
tbkBitmapGetWindowRect
tbkMMInitializeSystem
s_mminit
enterSystem
YieldApp
tb40dlg.dll
TB40WIN.DLL not found. Some widgets may not work
OpenDlg
TB40DLG.DLL not found. Some widgets may not work
tb40win.dll
tbkMMInitializeSystem
s_mminit
enterbook
s_mmdevices
tbkmmdevices
checkdevice
isNumber
^recessed
3DFrame
author
3DField
Repair 3D object after resizing?
txClassName
3DRect
recessed
sized
"___setSliderLimits
false
txClassName
Thumb
buttonDown
1,#!#
s___p
false
s___v
HSliderThumb
___slidePos
s___max
VSliderThumb
txClassName
s___min
buttonStillDown
s___v
false
s___p
HSliderThumb
___slidePos
s___max
VSliderThumb
txClassName
s___min
i0___snapSlider
sliderPosition
buttonUp
s___v
HSliderThumb
s___max
VSliderThumb
txClassName
s___min
glide
___setSliderLimits
___slidePos
sliderPosition
"___setSliderLimits
newPos
OldMax
hSliderThumb
pOffset
group
SliderThumb
s___max
OldMin
vSliderThumb
txClassName
s___min
thumb
sliderPosition
sliderPosition
detents
detentList
___snapSlider
MTB40MM.DLL link failed
mmsystem.dll
killtbkmmsbk
mtb40mm.dll
tbkmmerrorstring
s_mmdevices
tbkmmloadextensions
tbkmmversion
tbkmmerrorstring
tbkMCI
tbkGraphic
tbkTimerStart
tbkTimerStop
,$Ug;
tbkTimerCapability
MilliSecFromMSF
MilliSecFromHMS
MilliSecFromSMPTE
MSFFromMilliSec
HMSFromMilliSec
SMPTEFromMilliSec
tbkMMTranslate
tbkGetWindowRect
tbkPositionWindow
tbkCenterWindow
tbkMMMixer
, U__mig
jtbkmmloadextensions
tbkmmInitializeSystem
s_mminit
mmsystem
tbkmmInitializeSystem
CDBSE&File
&Open... Ctrl+O
&Save Ctrl+S
Save &As...
saveas
&Import...
import
&Export...
export
Print Set&up...
printsetup
&Print Pages... Ctrl+P
printpages
Prin&t Report...
printreport
Send &Mail...
sendmail
&Run...
E&xit Alt+F4
&Edit
&Undo Ctrl+Z
Cu&t Ctrl+X
&Copy Ctrl+C
&Paste Ctrl+V
paste
C&lear Del
clear
Select &All Shift+F9
selectall
Select Pa&ge Shift+F12
selectpage
&Size to Page F11
sizetopage
F&ind... F5
Re&place...
replace
Aut&hor F3
author
&Text
&Character... F6
character
&Paragraph... F7
paragraph
&Regular Ctrl+Space
regular
&Bold Ctrl+B
&Italic Ctrl+I
italic
&Underline Ctrl+U
underline
Stri&keout Ctrl+K
strikeout
Superscrip&t/Subscript
superscriptSubscript
&Normal Script
normalscript
Su&bscript Ctrl+L
subscript
Su&perscript Ctrl+Shift+L
superscript
&Show Hotwords F9
showhotwords
&Page
&Next Alt+Right
&Previous Alt+Left
previous
&First Alt+Up
first
&Last Alt+Down
&Back Shift+F2
&History... Ctrl+F2
history
N&ew Page Ctrl+N
newpage
&Help
&Contents F1
contents
Status &Bar F12
statusbar
are
standard
J entry points
tbkmmversion()
-- MCI central interface
-- BMP
tbkGraphic(
-- parallel
MMSYSTEM
tbkTimerStart(
tbkTimerStop(
tbkTimerCapability()
-- Utility
\ MilliSecFromMSF(
\ MilliSecFromHMS(
\ MilliSecFromSMPTE(
MSFFromMilliSec(
HMSFromMilliSec(
SMPTEFromMilliSec(
-- Translation
tbkMMTranslate(