Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Speed of SpinButton

I am using Excel 2000 and i have an SpinButton in an application. It
increases/decreases from 1 to 65000 with .value=1 and i have a label showing
the value. How can i do to accelerate the speed of the increase/decrease
after a while ?

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Speed of SpinButton

Look at the Delay property:

from help

The Delay property affects the amount of time between consecutive SpinUp,
SpinDown, and Change events generated when the user clicks and holds down a
button on a SpinButton or ScrollBar. The first event occurs immediately. The
delay to the second occurrence of the event is five times the value of the
specified Delay. This initial lag makes it easy to generate a single event
rather than a stream of events.
After the initial lag, the interval between events is the value specified
for Delay.

The default value of Delay is 50 milliseconds. This means the object
initiates the first event after 250 milliseconds (5 times the specified
value) and initiates each subsequent event after 50 milliseconds.

--
Regards,
Tom Ogilvy



"Hélder Lima" wrote in message
...
I am using Excel 2000 and i have an SpinButton in an application. It
increases/decreases from 1 to 65000 with .value=1 and i have a label

showing
the value. How can i do to accelerate the speed of the increase/decrease
after a while ?

Thanks




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Speed of SpinButton

Thanks Tom
I have tried change the Delay property but didn't work so well.
Actually i want this:
- Initially the value is 1
- the user press the up button and continuous pressing it
- after a while the value is added not 1 by 1, but 10 by 10
- if the user continuos to press, the value is added 100 by 100
- if the user stop to press the up button and press it again, the process
start again.

Thanks



"Tom Ogilvy" wrote in message
...
Look at the Delay property:

from help

The Delay property affects the amount of time between consecutive SpinUp,
SpinDown, and Change events generated when the user clicks and holds down

a
button on a SpinButton or ScrollBar. The first event occurs immediately.

The
delay to the second occurrence of the event is five times the value of the
specified Delay. This initial lag makes it easy to generate a single event
rather than a stream of events.
After the initial lag, the interval between events is the value specified
for Delay.

The default value of Delay is 50 milliseconds. This means the object
initiates the first event after 250 milliseconds (5 times the specified
value) and initiates each subsequent event after 50 milliseconds.

--
Regards,
Tom Ogilvy



"Hélder Lima" wrote in message
...
I am using Excel 2000 and i have an SpinButton in an application. It
increases/decreases from 1 to 65000 with .value=1 and i have a label

showing
the value. How can i do to accelerate the speed of the increase/decrease
after a while ?

Thanks






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default Speed of SpinButton

I spent a long time looking at this. I can't see any way of doing what you
want.
If there was an event called SpinButton_Release then you could check the
amount of time passed while holding the button down.
After, say, 3 seconds you could increase the value in SmallChange property.


--
Rob van Gelder - http://www.vangelder.co.nz/excel


"Hélder Lima" wrote in message
...
Thanks Tom
I have tried change the Delay property but didn't work so well.
Actually i want this:
- Initially the value is 1
- the user press the up button and continuous pressing it
- after a while the value is added not 1 by 1, but 10 by 10
- if the user continuos to press, the value is added 100 by 100
- if the user stop to press the up button and press it again, the process
start again.

Thanks



"Tom Ogilvy" wrote in message
...
Look at the Delay property:

from help

The Delay property affects the amount of time between consecutive

SpinUp,
SpinDown, and Change events generated when the user clicks and holds

down
a
button on a SpinButton or ScrollBar. The first event occurs immediately.

The
delay to the second occurrence of the event is five times the value of

the
specified Delay. This initial lag makes it easy to generate a single

event
rather than a stream of events.
After the initial lag, the interval between events is the value

specified
for Delay.

The default value of Delay is 50 milliseconds. This means the object
initiates the first event after 250 milliseconds (5 times the specified
value) and initiates each subsequent event after 50 milliseconds.

--
Regards,
Tom Ogilvy



"Hélder Lima" wrote in message
...
I am using Excel 2000 and i have an SpinButton in an application. It
increases/decreases from 1 to 65000 with .value=1 and i have a label

showing
the value. How can i do to accelerate the speed of the

increase/decrease
after a while ?

Thanks








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Spinbutton pcor New Users to Excel 2 November 6th 07 03:16 PM
Spinbutton Ben B Excel Discussion (Misc queries) 3 March 9th 06 11:38 AM
SpinButton Problem Pete Csiszar Excel Programming 7 January 1st 04 02:31 AM
Spinbutton sorting civms47 Excel Programming 1 December 24th 03 01:10 PM
SpinButton Rounding Up Randal W. Hozeski Excel Programming 5 December 23rd 03 08:12 PM


All times are GMT +1. The time now is 10:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"