BBjSysGui::beep

Description

In BBj 15.0 and higher, this method emits an audio beep on the client.

Syntax

Return Value Method
void beep()

Parameters

None.

Return Value

None.

Remarks

Browsers only allow sounds to play after the user has interacted with the page. In BUI and DWC, any attempt to play sounds during application startup is ignored, but sounds work as expected after the user has interacted with the page.

Example

rem ' beep
sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
window! = sysgui!.addWindow(25,25,150,100,"beep",$00090083$)
window!.setCallback(window!.ON_CLOSE,"eoj")
beep! = window!.addButton(101,25,25,100,25,"beep",$$)
beep!.setCallback(beep!.ON_BUTTON_PUSH,"beep")
gosub beep
process_events
eoj:
  release
beep:
  sysgui!.beep()
return

See Also

BBjAPI

BBjWindow

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.