Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Messagebox Handler not working properly in VFP7
Message
 
 
To
06/12/2001 11:24:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00590586
Message ID:
00590951
Views:
23
>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--
Previous
Reply
Map
View

Click here to load this message in the networking platform