Recent

Author Topic: [SOLVED] BGRA Controls TBCTrackbarUpdown LongTimeinterval / ShortTimeinterval  (Read 1414 times)

petevick

  • Sr. Member
  • ****
  • Posts: 374
Could anyone explain the purpose of these two properties please.
« Last Edit: December 25, 2023, 10:04:53 am by petevick »
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Windows 10, Lazarus 3.2, FPC 3.2.2

lainz

  • Hero Member
  • *****
  • Posts: 4558
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: BGRA Controls TBCTrackbarUpdown LongTimeinterval / ShortTimeinterval
« Reply #1 on: December 25, 2023, 12:20:11 am »
Reading the sources I found that ShortTimeInterval is the default ms for the timer that is used by the control, in normal circunstances.

LongTimeInterval is the timer used when the user interacts with the control by clicking it.

petevick

  • Sr. Member
  • ****
  • Posts: 374
Re: BGRA Controls TBCTrackbarUpdown LongTimeinterval / ShortTimeinterval
« Reply #2 on: December 25, 2023, 10:04:35 am »
Reading the sources I found that ShortTimeInterval is the default ms for the timer that is used by the control, in normal circunstances.

LongTimeInterval is the timer used when the user interacts with the control by clicking it.
Thanks lainz. I guess no real benefit would be gained by changing the defaults then.
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Windows 10, Lazarus 3.2, FPC 3.2.2

circular

  • Hero Member
  • *****
  • Posts: 4276
    • Personal webpage
Long time interval is indeed when the user starts to interact with the control by clicking on the up/down buttons. It is the delay before it repeats incrementing/decrementing the value. Short time interval is the delay after that between each increment. So it allows to simply click the button for one change, but if button is kept, it will then repeat the change. It is similar to how the keyboard repeats keys.
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018