Home > Archive > FoxPro Help and Support > June 2005 > Spinbox Question!









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Spinbox Question!
Ioannis Stefis

2005-06-01, 8:25 pm

Is there any way to handle dates with a spin box?
Any suggestion?

Thanks in Advance

Stefis Ioannis


Olaf Doschke

2005-06-01, 8:25 pm

> Is there any way to handle dates with a spin box?
> Any suggestion?


A class "datespinner" with baseclass control:
Put in a normal textbox for the date.
Put in a spinner for changing the date.
Reduce the width of the spinner to only
show the arrows.

spinner properties:
spinnerhighvalue = 1.00
spinnerlowvalue = -1.00
increment = 1.00 && default

In spinner.interactivechange you'd put

with this.parent.text1
.value = .value + this.value
endwith
this.value = 0

Bye, Olaf.


Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com