VFP 6.0的十个实用技巧(4) &&提供的最大默认值SpinnerLowValue=Min &&Min应大于Spinner基类所&&提供的最小默认值Value=1Name='CycleSpinner'在Init事件中写入如下代码:This.SpinnerHighValue=This.SpinnerHighValue+This.IncrementThis.SpinnerLowValue=This.SpinnerLowValue-This.Increment在InteractiveChange事件中写入如下代码:If This.Value=This.SpinnerHighValueThis.Value=Int(This.SpinnerLowValue+This.Increment)EndifIf This.Value=This.SpinnerLowhValueThis.Value=Int(This.SpinnerHighValue-This.Increment)EndifThisform.Refresh---- 再将其作为类保存起来,添加到你的类库中。 ---- 若你在编程中,需用此功能,就可直接用此循环微调控件类了。