Copyright © 2003-2024 MultiMedia Soft

EnableSound method

Previous pageReturn to chapter overviewNext page

Remarks

Enables or disables the specified sound. By default all the sounds are initially enabled.

 

Syntax

 

[Visual Basic]

Public Sub EnableSound(nSound as Ctl3d.Sounds, bEnable as Bool)

 

[C#]

public void EnableSound(Ctl3d.Sounds nSound, bool bEnable);

 

[C++]

public: void EnableSound(Ctl3d.Sounds nSound, bool bEnable);

 

 

Parameter

Description

 

 

nSound

Value that identifies the sound to be enabled or disabled. Supported values are the following:

Enumerated value

Value

Meaning

Sounds.MouseDown

0

The sound that occurs when the button is pressed.

Sounds.MouseUp

1

The sound that occurs when the button is released.

Sounds.MouseOver

2

The sound that occurs when the mouse enters the button area

Sounds.MouseOut

3

The sound that occurs when the mouse leaves the button area

bEnable

Boolean value that specifies whether to enable or disable the sound.. Supported values are the following:

Value

Meaning

False

The sound is disabled

True (default)

The sound is enabled.