Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Undetermined Progressbar

    Hi guys,

    Is there any way of getting an undetermined Progressbar? You known, the typical progressbar that moves until a process is finished.

    I tried using a Timer to increase the Progressbar percentage and once 100% is reached, start again. But I don't like the way it looks.

    Thanks.

    #2
    Is it possible to set the percent done to 100% and set the image to a gif? I am in need of a non deterministic progress bar myself.

    Comment


      #3
      Yes, a call setSrc() should work if you have an animated .gif.

      However, if you have a "Progressbar" that will never show specific progress (it will just "spin"), at that point you may as well use just Img, because that has just the one required image file.

      Comment


        #4
        I would definately want to use setSrc on a progress bar, the task will complete but I have no means of knowing or determining its status, once its started I must just wait for a completed signal. At which point I would want to remove the animation.

        Comment


          #5
          The reason we mentioned image is that it sounds like you need only one, or possibly two states -- an animated gif representing "in progress" and a (probably static) gif representing "complete".
          This can be achieved by simply applying the media in question to an Img component via two calls to setSrc.

          Progressbar is a more complex component that supports automatically mapping logical percentage-complete to a combination of stretched media to give you the appearance you want. You could of course manipulate this component for your usage but it probably will be simpler to just your own custom Img subclass where you setSrc() to show the "in progress" vs "complete" media as required.

          Comment

          Working...
          X