キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Pict Ring Repeat Rate Modification

I have created a Pict Ring with some pictures (see sample attached).

The default rate at which the pictures change 'feels slow'. If one releases the mouse button and clicks quickly the picture change almost instantly. Experience with animated controls also indicates that the control will change quickly.

Is it possible to modify the default repeat rate setting of the increment decrement buttons on the Pict Ring control?

I thought that the repeat rate should be a property of the control but I do not appear to be able to locate anything suitable.

I could use seperate buttons to change the control but this is less desireable.
0 件の賞賛
メッセージ1/5
3,097件の閲覧回数
I think the problem is you loop is running as fast as it can and using all of your CPU time. Try adding a small delay(10ms). It should respond better.
0 件の賞賛
メッセージ2/5
3,097件の閲覧回数
Besides adding the delay in the while loop, hold down the shift key while clicking the increment or decrement buttons. This accelerator mode works quite well with numeric controls but for some reason, with the pict ring, I see an an intial acceleration and then the control stops incrementing/decrementing. I also assigned key focus to the control and used the up and down arrows with very rapid changes.
メッセージ3/5
3,097件の閲覧回数
That's the top tip needed, thanks the Shift key works great. (The original had a delay which does keep CPU low, sorry I missed it for the demo code).

How did you come accross that little gem ?

P.S. Note the stars (they seem much appreciated, and valued)
0 件の賞賛
メッセージ4/5
3,097件の閲覧回数
Thanks for the stars. I don't remember when I learned about the shift key or where I learned it. Glad it helped.
0 件の賞賛
メッセージ5/5
3,097件の閲覧回数