>I have been trying to use the "Messagebox Handler" (a messagebox() wrapper) as it describes in the MSDN VFP7 help, but apparently setting the properties have absolutely no effect when the .show() event is executed. My main objective is to get a messagebox() without a beep, but changing the "lbeep" property to .F. seems to have no effect. Even thought the lbeep prorperty is .F. by default, it still gives a beep on show() (and changing it to .T. still beeps). Can anyone help me figure this one out?
Hi Andy,
As you notice Messagebox Handler is a wrapper around VFP Messagebox function wich in turn is a wrapper around Windows Messagebox API function. The sounds for the Windows Messagebox are configured on the Windows level in the Control Panel. In case if the sounds turned off in Windows, the lBeep property of above mentioned class allows to control beep by using following code
IF this.lBeep
?? CHR(7)
ENDIF
You can create your own messagebox using modal form or search Download section for 'messagebox'.
--sb--