Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Putting different text in a textbox in a form
Message
De
31/03/1999 21:39:00
 
 
À
31/03/1999 21:36:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00203752
Message ID:
00204104
Vues:
19
Gan,
>
>I think using labels, like Joseph suggested, is the way to go. Textboxes are primarily for input and data-bound (where you change the .VALUE occasionally).
>

You might want to look at the TxtWidth() Function which can accomplish the same results as the AutoSize for labels, since TextBoxes in VFP5 do not have that Proprty (if you decide to use TextBoxes).


Kenneth
>
>
>>Some additional thoughts:
>>
>>If you use a Label control the same way, you could use the AutoSize property to adjust its size after changing the Caption value. Then read its width value and adjust the size of the form appropriately. Maybe even fiddle with the WordWrap/Height properties for long messages.
>>
>>Gan, I know you didn't ask for these comments, so please ignore them if they don't apply.
>>
>>Joe
>>
>>>Gan,
>>>
>>>Pass the error message as a parameter to the form from the calling form :-
>>>
>>>DO FORM errForm WITH lcErrMessage
>>>
>>>In errForm.Init(), retrieve the parameter and place in the TextBox :-
>>>
>>>LPARAMETERS lcErrMess
>>>THIS.txtErrMsg.VALUE = lcErrMess
>>>
>>>
>>>
>>>Kenneth
>>>
>>>>I've created a form for prompting different error messages. The form contains a Textbox for different error messages which I want to put for the user.
>>>>
>>>>How should I run the form and then put the Value of the Error Messages with my choice? Is it possible? For example err..
>>>>
>>>>errform.txtErrmsg.value = "Record not found."
Kenneth.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform