home *** CD-ROM | disk | FTP | other *** search
- property pLeaveSound, pSound, pSoundEnable, pLeaveSoundEnable
- global scrWidth, scrHeight, scrDepth
-
- on mouseDown
- if pSoundEnable then
- puppetSound(1, pSound)
- end if
- Answer = baMsgBox("Are you sure you would like to quit?", "Question?", "YesNo", "Question", 1)
- if Answer = "Yes" then
- if pLeaveSoundEnable then
- puppetSound(1, pLeaveSound)
- end if
- repeat while soundBusy(1)
- end repeat
- baDisableSwitching(0)
- OldSS = baDisableScreenSaver(0)
- KeysOff = baDisableKeys(0, baWinHandle())
- showing = baHideTaskBar(0)
- Ok = baSetDisplay(scrWidth, scrHeight, scrDepth, "temp", 0)
- quit()
- else
- go("1")
- end if
- end
-
- on getPropertyDescriptionList me
- vPDList = [:]
- setaProp(vPDList, #pSound, [#comment: "Which sound to Play on mousedown?", #format: #sound, #default: EMPTY])
- setaProp(vPDList, #pSoundEnable, [#comment: "Enable sound to Play on mousedown?", #format: #boolean, #default: 1])
- setaProp(vPDList, #pLeaveSound, [#comment: "Which sound to Play on Leave?", #format: #sound, #default: EMPTY])
- setaProp(vPDList, #pLeaveSoundEnable, [#comment: "Enable sound to Play on Leave?", #format: #boolean, #default: 1])
- return vPDList
- end
-