Progress Bar

Home Forums General Programming Progress Bar

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #35365
    fredo
    Participant
      • Topics: 2
      • Replies: 6
      • Total: 8

      Hi Atom !

      I would like to know if you could help us find a way to implement a progress bar in an alert window.
      I’ve spent quite a big amount of time doing this with ThreadWithProgressWindow.
      I finally managed to have something working-ish, but Ctrlr crashes every once in a while, I guess due to threading issues with lua.
      For those who would like to try, to have ThreadWithProgressWindow working you have to remove absolutely every line of lua code that could be executed after a press on the “Cancel” button (or to remove the cancel button).

      Anyway, since threading seems to be the issue, would it be possible to use a simple AlertWindow and add a progress bar to it ?
      I’ve seen a addProgressBarComponent() method wrapper, but I don’t know how to use it…

      Thx for your help and keep up the great work !

      Cheers,

      Fredo.

      #35612
      fredo
      Participant
        • Topics: 2
        • Replies: 6
        • Total: 8

        Bump ?

        #37122
        fredo
        Participant
          • Topics: 2
          • Replies: 6
          • Total: 8

          Hi Atom,

          Thx a lot for the new progress bar component !
          I managed to make a pretty nice looking upload procedure by switching my whole editor to a tab displaying the progress bar, and switching back to the main tab when the upload is finished or aborted.
          Could you please generate a Mac release of the latest version (with the progress bar component) ?

          Thx for your help,

          Fredo.

          • This reply was modified 9 years, 2 months ago by fredo.
          #69101
          goodweather
          Participant
            • Topics: 45
            • Replies: 550
            • Total: 595
            • ★★★

            Hi,
            how is the progress bar component working? Can someone provide an example?
            Didn’t see any related function in Ctrlr source code…
            If no answer in a while, I’ll just use the classical way with 2 rectangles on each other and changing the length of the top one based on % completion…

            Thx!

            #84193
            daimondamps
            Participant
              • Topics: 8
              • Replies: 80
              • Total: 88

              Hi , how to properly initialize ProgressBar in Alert window?

              I tried :
              modalWindow:addProgressBarComponent( 0.5)
              modalWindow:addProgressBarComponent(somevariable)
              modalWindow:addProgressBarComponent(some_function())

              ERROR: No matching overload found, candidates:
              void addProgressBarComponent(AlertWindow&,custom [double]&)

            Viewing 5 posts - 1 through 5 (of 5 total)
            • The forum ‘Programming’ is closed to new topics and replies.
            There is currently 0 users and 74 guests online
            No users are currently active
            Forum Statistics
            Threads: 2,495, Posts: 17,374, Members: 77,605
            Most users ever online was 12 on January 22, 2019 3:47 pm
            Ctrlr