ATOUTFOX
COMMUNAUTÉ FRANCOPHONE DES PROFESSIONNELS FOXPRO
Visual FoxPro : le développement durable

Forum AtoutFox : Re: Titre de MESSAGEBOX()   

Sujet

rss Flux RSS des derniers messages

Vous devez vous identifier pour pouvoir poser une question ou répondre.

lun. 18 février 2013, 22h48
Cesar Ch
Brésil Brésil

atoutfox.public.association

Re: Titre de MESSAGEBOX()

Hi Francis,

I'll prefer to answer this one in english, ok ?

Probably Gregory's answer is the best for you in this case...
But let me offer to you another solution:

Put the following in your .H file

#DEFINE MESSAGEBOX MsgBoxExFrancis


Then, create a function, or even PRG, and call it "MsgBoxExFrancis.prg"
And adapt the code below to it:

LPARAMETERS eMessageText, nDialogBoxType, cTitleBarText, nTimeout
LOCAL lnPars, lcMainCaption
lnPars = PCOUNT()

IF EMPTY(cTitleBarText)
   cTitleBarText = "FAURE'S NEW MESSAGEBOX"
ENDIF

DO CASE

CASE lnPars = 1
   RETURN MESSAGEB(eMessageText, 0, cTitleBarText)

CASE lnPars = 2
   RETURN MESSAGEB(eMessageText, nDialogBoxType, cTitleBarText)

CASE lnPars = 3
   RETURN MESSAGEB(eMessageText, nDialogBoxType, cTitleBarText)

CASE lnPars = 4
   RETURN MESSAGEB(eMessageText, nDialogBoxType, cTitleBarText, nTimeout)

ENDCASE



Does that help???

Salutations

Cesar









Permalink : http://www.atoutfox.org/nntp.asp?ID=0000011213
20 286 messages dans le forum • Liste complète des messages

www.atoutfox.org - Site de la Communauté Francophone des Professionnels FoxPro - v3.4.0 - © 2004-2026.
Cette page est générée par un composant COM+ développé en Visual FoxPro 9.0-SP2-HF3