Forum

    • Register
    • Login
    • Search
    • Categories

    Delay a callback

    General Questions
    2
    4
    106
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      BWSounds last edited by

      Is it possible to delay a callback?

      I have a button but I want to delay its purpose for a few seconds while changing presets...

      Lindon 1 Reply Last reply Reply Quote 0
      • Lindon
        Lindon @BWSounds last edited by

        @BWSounds put it all in a timer...

        HISE Development for hire.
        www.channelrobot.com

        B 1 Reply Last reply Reply Quote 0
        • B
          BWSounds @Lindon last edited by

          @Lindon
          Would I do that in the onTimer ?

          Lindon 1 Reply Last reply Reply Quote 0
          • Lindon
            Lindon @BWSounds last edited by

            @BWSounds declare a system level timer:

            lookup:

            myTimer = Engine.createTimerObject();

            then create a timer call back:

            look up:

            myTimer.setTimerCallback(var callbackFunction)

            in your button callback call the timer:

            myTimer.startTimer(int intervalInMilliSeconds)

            in the timer itself stop the timer...

            HISE Development for hire.
            www.channelrobot.com

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            15
            Online

            852
            Users

            5.7k
            Topics

            52.9k
            Posts