HISE Logo Forum
    • Categories
    • Register
    • Login

    Delay a callback

    Scheduled Pinned Locked Moved General Questions
    4 Posts 2 Posters 276 Views
    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...

      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        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 ?

          LindonL 1 Reply Last reply Reply Quote 0
          • LindonL
            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

            17

            Online

            1.8k

            Users

            12.0k

            Topics

            104.1k

            Posts