Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Spinner Keyboard High and Low Values
Message
De
08/04/2005 17:34:35
 
 
À
08/04/2005 16:35:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01002839
Message ID:
01002884
Vues:
21
The test I did showed a Wait window when the value were outside the range.
But if it is a more obvious display, type this.

Place this in the Spinner control's Valid event.
If not between(this.value, this.SpinnerLowValue, this.SpinnerHighValue)
  MessageBox("The value you typed in out of range.")
  return .f.
endif
return .t.
>Hi Greg,
>
>I think you misunderstood what I was asking. I have set both keyboard and spinner low and high values. I want a message to be displayed when the user types a value outside of the range.
>
>>Look at SpinnerLowValue and SpinnerHighValue.
>>
>>>Hi,
>>>
>>>is there an event that I can use to inform the user that they have entered a value that is beyond the keyboardhigh and keyboardlowvalue of a spinner?
>>>
>>>What is happening is these properties get set dynamically based on the selected data. If the user enters a value that is outside of the range, there is no message or indication of what is wrong, the user just cannot move off the control.
>>>
>>>This is the first time I'm using spinners in over 10 years of Fox and VFP.
>>>
>>>Thanks,
Greg Reichert
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform