Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Messagebox Handler not working properly in VFP7
Message
 
 
À
06/12/2001 11:24:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00590586
Message ID:
00590951
Vues:
25
>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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform