Progress Bar with unknown state or showing animated gifs

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Progress Bar with unknown state or showing animated gifs

Peter Uhnak
Hi,

is there a way to have a progress bar with unknown state?

ProgressBarMorph / Job / SystemProgressMorph seem to be based around progress only.

Alternatively, is it possible to (easily) display animated gifs?

Thanks,
Peter
Reply | Threaded
Open this post in threaded view
|

Re: Progress Bar with unknown state or showing animated gifs

kilon.alios
You can take a look at how I do seconds indicator in my ChronosManager tool, its just a simple ImageMorph stepping through png images with transparency. 

On Fri, Nov 11, 2016 at 8:13 PM Peter Uhnák <[hidden email]> wrote:
Hi,

is there a way to have a progress bar with unknown state?

ProgressBarMorph / Job / SystemProgressMorph seem to be based around progress only.

Alternatively, is it possible to (easily) display animated gifs?

Thanks,
Peter
Reply | Threaded
Open this post in threaded view
|

Re: Progress Bar with unknown state or showing animated gifs

Peter Uhnak
Hmm, thanks. I can write it myself, that's not a problem.

I am just surprised that there is no native support/lib... I'll see if I can do something about it.

Peter

On Fri, Nov 11, 2016 at 07:01:26PM +0000, Dimitris Chloupis wrote:

> You can take a look at how I do seconds indicator in my ChronosManager
> tool, its just a simple ImageMorph stepping through png images with
> transparency.
>
> On Fri, Nov 11, 2016 at 8:13 PM Peter Uhnák <[hidden email]> wrote:
>
> > Hi,
> >
> > is there a way to have a progress bar with unknown state?
> > e.g. https://i.stack.imgur.com/gz9GK.gif
> >
> > ProgressBarMorph / Job / SystemProgressMorph seem to be based around
> > progress only.
> >
> > Alternatively, is it possible to (easily) display animated gifs?
> >
> > Thanks,
> > Peter
> >

Reply | Threaded
Open this post in threaded view
|

Re: Progress Bar with unknown state or showing animated gifs

kilon.alios
well "native" in this case would mean OS library. Most likely there is and you can use the UFFI to do it but I assume here you mean Morphic.

I have played around with Progress bar when I was trying to increase its size for PharoLauncher. As almost all things inside Pharo is not documented and its entangled between messages. But yeah it should be possible to animate the green bar so it bounces left and right. If my memory serves me correctly its not nothing more than a set of super simple morphs tied to announcements. 

Its that my mentality usually is if something is simple enough as an idea it does not worth wasting your time learning how a poor documented library works. I have wasted huge amounts of time trying to understand Pharo libraries and tools, so I learned the hard way. 

On Tue, Nov 15, 2016 at 4:32 PM Peter Uhnak <[hidden email]> wrote:
Hmm, thanks. I can write it myself, that's not a problem.

I am just surprised that there is no native support/lib... I'll see if I can do something about it.

Peter

On Fri, Nov 11, 2016 at 07:01:26PM +0000, Dimitris Chloupis wrote:
> You can take a look at how I do seconds indicator in my ChronosManager
> tool, its just a simple ImageMorph stepping through png images with
> transparency.
>
> On Fri, Nov 11, 2016 at 8:13 PM Peter Uhnák <[hidden email]> wrote:
>
> > Hi,
> >
> > is there a way to have a progress bar with unknown state?
> > e.g. https://i.stack.imgur.com/gz9GK.gif
> >
> > ProgressBarMorph / Job / SystemProgressMorph seem to be based around
> > progress only.
> >
> > Alternatively, is it possible to (easily) display animated gifs?
> >
> > Thanks,
> > Peter
> >