sound on key press

sound on key press

Postby MdaSolution » Mon May 10, 2010 10:50 pm

How I can insert a sound when I press a key and I use a Tget control ?
FWH .. BC582.. xharbour
User avatar
MdaSolution
 
Posts: 401
Joined: Tue Jan 05, 2010 2:33 pm

Re: sound on key press

Postby MarcoBoschi » Tue May 11, 2010 8:21 am

#include "Fivewin.ch"

FUNCTION MAIN()

LOCAL oDlg

LOCAL oGet1, cVar1 := SPACE( 10 )

REQUEST HB_GT_GUI_DEFAULT // for tone usage

DEFINE DIALOG oDlg

@ 1 , 1 GET oGet1 VAR cVar1 OF oDlg

// oGet1:bKeyChar = { || tone(100,.1) }
oGet1:bKeyChar = { || messagebeep() }

ACTIVATE DIALOG oDlg CENTER

RETURN NIL
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: sound on key press

Postby MdaSolution » Wed May 12, 2010 10:16 am

Mr Marco,

REDEFINE GET oMss VAR cMss ID 130 MEMO OF oDlm
oMss:bKeyChar = { || messagebeep() }

NOT RUN !
FWH .. BC582.. xharbour
User avatar
MdaSolution
 
Posts: 401
Joined: Tue Jan 05, 2010 2:33 pm

Re: sound on key press

Postby MarcoBoschi » Wed May 12, 2010 1:17 pm

Did you try ?
oMss:bKeyDown = { || messagebeep() }
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], Marc Venken, nageswaragunupudi and 65 guests