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

Forum AtoutFox : Re: centrer une input ou messagebox   

Sujet

rss Flux RSS des derniers messages

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

mar. 20 août 2019, 17h59
BONEMME
atoutfox.public.association

Re: centrer une input ou messagebox

JM ANDRÉ a exprimé avec précision :
> Bonjour à Tous
> Quelqu'un aurait-il une classe pour centrer dans la fenêtre en cours (non
> l'écran total) une messagebox ou inputbox ? Merci d'avance
> Jean-Michel André

Bonjour JM

Je n'ai pas de réponse en tant que classe, personellement j'utilise
depuis les versions DOS! une procédure simple et modulable.
WMSGBOX original de ?? je dois chercher
*==========================================================
PROCEDURE wbox
*==========================================================
*
* SYNTAX: wmsgbox (<cmsg>, <ctitle>, <ctype>, <cprompt>, <nrow>,
<ncol>,
* [<cjust>], [<cfont>], [<nsize>], [<cstyle>],
* [<cncolor>], [1], [<chelp>], [<cvalfunc>],
* [<cnborder>])
*
* PARAMETERS: <cmsg> - The messages to display...each line separated
* by a carriage return, CHR(13).
* <ctitle> The title for the message window. Defaults to
* "System Message"
* <ctype> - Type of ICON to display with dialog or the
* file name of the ICON to display or the
* field name of the ICON to display.
* Icon must be 36 x 36 in size.
* The alias may be included with the field
name.
* <cprompt> - The options to choose from. Pass empty string
* to display message without waiting for user
* input.
* <nrow> - The row where top of window starts. Pass -1
* to have window centered.
* <ncol> - The column where left of window starts. Pass
* -1 to have window centered.
* <cjust> - Optional justification of message. Default is
* left justification.
* <cfont> - Optional font type.
* <nsize> - Optional Size of cfont.
* <cstyle>- Optional Style of cfont.
* <cncolor>- Optional Color string for given font. Will
* accept a color string that is valid for an
* @...SAY command. A color scheme or RGB(...)
* color style may be passed as well. For
color
* scheme, pass the scheme number; for RGB(...)
* enclosed the RGB(..) specification in
quotes.
* <1> - Optional, if a 1 is passed in, then function
* returns a number indicating which button was
* chosen.
* <chelp> - Optional help message for buttons. Separate
* each button message by a semi-colon (similar
* to how each button is separated!)
* <cvalfunc> - Optional name of function to be called when
* a button is selected. WMsgBox() will clear
* its read only when this function returns .T.!
* To determine which button was selected, you
* can use the _CUROBJ value in your validation
* <cnborder> - The characters defining the window border,
* or the number indicating system border type.
* The border string must be in this format:
* 1ist and 2nd chars are top and bottom
* 3rd and 4th chars are the sides
* 5th and 6th chars are top left/right corners
* 7th and 8th chars are bottom left/right
* corners.
*
* Example: "Äij³Ú¿ÀÙ" will yield a single
border
* window.
*
* RETURNS: Character or Numeric.

Plusieures fn typiques du DOS pevent être ignorées par une chaine
vide.
Je peux l'envoyer si nécessaire.

Regarde aussi sur atoutfox rubrique 02-SCX: Formulaires
Formes d'entrée de données

Tu peux la télécharger
L'appel se fait au départ de ta fenêtre.

Guy Bonemme

--
Guy Bonemme

---
Cet email a fait l'objet d'une analyse antivirus par AVG.
http://www.avg.com
Permalink : http://www.atoutfox.org/nntp.asp?ID=0000019445
20 087 messages dans le forum • Liste complète des messages

Publicité

Les pubs en cours :


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