Nice, but did you see SystemProgressMorph class>>#settingsOn: ? In other words, 
there are preferences for the location of the progress bar, these should 
probably be honoured. A big or a small bar also depends a bit on taste I would 
say.

On 08 Sep 2014, at 13:00, kilon alios <[email protected]> wrote:

> ok with a bit of help I was able to figure things out, it turns out that it 
> was simple to do difficult to understand :D so here is my answer
> 
> http://stackoverflow.com/questions/25708970/trying-to-find-the-progressbar-morph-when-sending-the-message-displayprogress
> 
> I also attached the new progress bar i customised and the old for comparison 
> as attached images
> 
>  <newProgressBar.JPG>
> 
> <oldProgressBar.JPG>
> ​
> Personally I would make my code the default Progress Bar for entire Pharo 
> including all operations because its annoying to be that small and up there. 
> This should work well even if there are multiple Progress Bars displayed. But 
> for not its PharoLauncher only progress bar. 
> 
> How I add this code to PharoLauncher ? do I use just the development mode of 
> PharoLauncher and Commit ? I dont want to mess anything up. 
> 
> Next step would be to add an info box for each image so people know what they 
> download before downloading it. 
> 
> On Sun, Sep 7, 2014 at 8:52 PM, kilon alios <[email protected]> wrote:
> yeah yeah I see it now, there actually many announcers (3 of them ) all seem 
> to signal SystemProgressMorph , oh boy this will be a tricky one . Thanks for 
> the pointer, now I have to find how to capture the instance of that 
> SystemProgressMorph. If I find the instance sending a width: message should 
> do the trick. Looks like I will need to investigate further but at least you 
> are pointed me to the right direction so I no longer feel lost in space. 
> 
> 
> On Sun, Sep 7, 2014 at 7:22 PM, Thierry Goubier <[email protected]> 
> wrote:
> Le 07/09/2014 11:53, kilon alios a écrit :
> 
> Hello pharoers it has been almost a year since the last time I commited to 
> PharoLauncher so I decided to go for it once again. The first time I added a 
> progress bar for people to see the progress of the download of the image . 
> Now I want to scale and reposition the progress bar as I am not happy at all 
> in the way it looks , its too small and hard to read.
> 
> So I created a question at stackoverflow with all the details of my problem
> 
> http://stackoverflow.com/questions/25708970/trying-to-find-the-progressbar-morph-when-sending-the-message-displayprogress
> 
> I would not mind also some extra details on how I can fetch the Morphs used 
> by UIManager or to even further customise UIManager. I tried to find the 
> answer myself but after an hour of staring at the Pharo system browser I gave 
> up.
> Hi Kilon,
> 
> I don't have a stackoverflow account, so here is what I found.
> 
> From displayProgress: , asJob brings you to Job, which has no morph at all. 
> But, on the class side of Job, you have a job announcer (instance class 
> variable jobAnnouncer). Inspect that variable, search among the subscriptions 
> of the announcer, and you'll find SystemProgressMorph.
> 
> A good use case of a fairly good design which is a lot harder to unravel than 
> it should be, due to the lack of tools to explore announcer / subscription 
> relations.
> 
> Thierry
> 
> 
> 


Reply via email to