UIManager default informUserDuring: -> DNU (10300)

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

UIManager default informUserDuring: -> DNU (10300)

Stéphane Ducasse
UIManager default informUserDuring:
        [:bar |
                #(one two three)
                        do: [ :info |
                                        bar value: info.
                                        (Delay forSeconds: 1)]]

leads to an error.
Apparently barValue does not like to be a symbol.

Stef

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: UIManager default informUserDuring: -> DNU (10300)

Gary Chambers-4
The method in question incorporates some of Keith Hodges fun things.
Valid values are:

    #current (return bar size)
    #label (return current label)
    #setMax (allegedly change the max value)
    #setMin (allegedly change the min value)
    #stripe (use animated stripey background)
    #increment (add one to current value)
    #decrement (subtract one from current value)
    #refresh (force redraw)

    a String (set the label)
    a Number (set the value)

I'll update the comment example in PSUIManager to:

UIManager default informUserDuring: [:bar|
   #('one' 'two' 'three') do: [:info|
    bar value: info.
    1 to: 100 do: [:v |
     bar value: v.
     (Delay forMilliseconds: 20) wait]]]

Regards, Gary


----- Original Message -----
From: "Stéphane Ducasse" <[hidden email]>
To: "Pharo Development" <[hidden email]>
Sent: Tuesday, May 05, 2009 9:06 PM
Subject: [Pharo-project] UIManager default informUserDuring: -> DNU (10300)


> UIManager default informUserDuring:
> [:bar |
> #(one two three)
> do: [ :info |
> bar value: info.
> (Delay forSeconds: 1)]]
>
> leads to an error.
> Apparently barValue does not like to be a symbol.
>
> Stef
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project 


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: UIManager default informUserDuring: -> DNU (10300)

Stéphane Ducasse
Thanks gary

Stef

On May 12, 2009, at 12:01 PM, Gary Chambers wrote:

> The method in question incorporates some of Keith Hodges fun things.
> Valid values are:
>
>    #current (return bar size)
>    #label (return current label)
>    #setMax (allegedly change the max value)
>    #setMin (allegedly change the min value)
>    #stripe (use animated stripey background)
>    #increment (add one to current value)
>    #decrement (subtract one from current value)
>    #refresh (force redraw)
>
>    a String (set the label)
>    a Number (set the value)
>
> I'll update the comment example in PSUIManager to:
>
> UIManager default informUserDuring: [:bar|
>   #('one' 'two' 'three') do: [:info|
>    bar value: info.
>    1 to: 100 do: [:v |
>     bar value: v.
>     (Delay forMilliseconds: 20) wait]]]
>
> Regards, Gary
>
>
> ----- Original Message -----
> From: "Stéphane Ducasse" <[hidden email]>
> To: "Pharo Development" <[hidden email]>
> Sent: Tuesday, May 05, 2009 9:06 PM
> Subject: [Pharo-project] UIManager default informUserDuring: -> DNU  
> (10300)
>
>
>> UIManager default informUserDuring:
>> [:bar |
>> #(one two three)
>> do: [ :info |
>> bar value: info.
>> (Delay forSeconds: 1)]]
>>
>> leads to an error.
>> Apparently barValue does not like to be a symbol.
>>
>> Stef
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project