Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Messagebox Title Message Question !
Message
De
14/02/2001 14:47:07
 
 
À
14/02/2001 07:59:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00475630
Message ID:
00475962
Vues:
47
Kengwen,

You could use a wrapper method for this. The parameters passed to the wrapper would be the message & the dialog box type parameters. The wrapper would then call messagebox with those two parameters, plus the title parameter. It could pull the title parameter from a property of your application object or _screen.caption. i.e.,
-- Call the wrapper
nButtonPushed = oApp.MyMsgBox('this is a test message', 16)

-- The wrapper method
LPARAMETERS cMsg, nBoxType
LOCAL rv
STORE -1 TO rv

<parameter testing here>

rv = MESSAGEBOX(cMsg, nBoxType, _screen.caption)

RETURN rv
Tom

>Hi,
> I want to know is that anyway to make the messagebox title to be set one time, and no need to set every time when fire the messagebox ?
> The default messagebox title message for Visual FoxPro is "Microsoft Visual FoxPro", and is that i can change it to be my project name ? that is seems like Visual Basic can be set it to the project name.
>thanks.
>
>kengwen
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform