Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Spinner Keyboard High and Low Values
Message
From
10/04/2005 13:59:50
 
 
To
09/04/2005 10:56:46
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01002839
Message ID:
01003224
Views:
23
Strange. I just ran a test, and the Valid event fires when the Value properties has changed, focus of the field is lost. If you need it to fire even if the Value does not change, then use the Lostfocus event instead.

>Hi Greg,
>
>the valid isn't kicking in because the spinner does not let the valid fire unless a valid value has been entered (at least that is what appears to be happening).
>
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform