You are here: Symbol Reference > JSDialog Namespace > Classes > TJSCustomDialog Class > TJSCustomDialog Properties > TJSCustomDialog.PlaySounds Property
LMD DialogPack
ContentsIndexHome
PreviousUpNext
TJSCustomDialog.PlaySounds Property

Determines if the dialog plays a sound when displayed on screen.

Pascal
property PlaySounds: Boolean;

Depending on the MainIcon value for the dialog, the dialog will play the default system sound associated with the icon type.

MainIcon value 
Default Sound 
tdiNone 
No sound is played 
tdiWarning 
SystemExclamation 
tdiError 
SystemHand 
tdiInformation 
SystemAsterisk 
tdiConfirmation 
SystemQuestion 
tdiCustom 
No sound is played by default 
tdiShield 
WindowsUAC 
  • The WindowsUAC sound is only applicable to Windows Vista or greater operating systems
  • You can override the default sound by either overriding the GetSystemSound method in a descendant or handling the OnGetCustomSound event.
Copyright © 2013 by LMD Innovative. All rights reserved.
Copyright © 2013 by LMD Innovative. All rights reserved.
What do you think about this topic? Send feedback!