ROAddName label string

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

ROAddName label string

Usman Bhatti
Hello,

ROAddName in Roassal allows dynamically adding labels on mouse hover (See example ROMondrianViewBuilder>>addingNameOn:). Is it possible that a selector be provided to the class instead of doing a printString to compute the label for the element being hovered on.

tx,

Usman

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: ROAddName label string

abergel
Hi Usman,

Good point!
In Roassal1.391 we have introduced a #block: accessor to ROAddName. For example:

testBlock

        | addedElement |
        ROAddName new
                block: [ :el | 2 printString ];
                toElement: element.
        addedElement := element view elements last.
        self assert: addedElement model = '2'

Let us know if if you need anything further.

Cheers,
Alexandre

On Jul 17, 2013, at 8:31 AM, Usman Bhatti <[hidden email]> wrote:

> Hello,
>
> ROAddName in Roassal allows dynamically adding labels on mouse hover (See example ROMondrianViewBuilder>>addingNameOn:). Is it possible that a selector be provided to the class instead of doing a printString to compute the label for the element being hovered on.
>
> tx,
>
> Usman
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: ROAddName label string

Usman Bhatti
Tx Alex. It works :).


On Wed, Jul 17, 2013 at 4:31 PM, Alexandre Bergel <[hidden email]> wrote:
Hi Usman,

Good point!
In Roassal1.391 we have introduced a #block: accessor to ROAddName. For example:

testBlock

        | addedElement |
        ROAddName new
                block: [ :el | 2 printString ];
                toElement: element.
        addedElement := element view elements last.
        self assert: addedElement model = '2'

Let us know if if you need anything further.

Cheers,
Alexandre

On Jul 17, 2013, at 8:31 AM, Usman Bhatti <[hidden email]> wrote:

> Hello,
>
> ROAddName in Roassal allows dynamically adding labels on mouse hover (See example ROMondrianViewBuilder>>addingNameOn:). Is it possible that a selector be provided to the class instead of doing a printString to compute the label for the element being hovered on.
>
> tx,
>
> Usman
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev