Roassal now support Double clicks

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

Roassal now support Double clicks

abergel
Hi!

Leo, double clicks have been added to Roassal :-)

-=-=-=-=-=-=-=-=-=
| v es |
v := RTView new.
es := (RTBox new color: Color purple; size: 25) elementsOn: (1 to: 100).
es when: TRMouseDoubleClick do: [ :e | e element trachelShape color: Color red. v signalUpdate ].
v addAll: es.
RTGridLayout on: v elements.
v open.
-=-=-=-=-=-=-=-=-=

This is a contribution from Juan-Pablo Sandoval

Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
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: Roassal now support Double clicks

Tudor Girba-2
Very nice.

Doru


On Wed, Aug 6, 2014 at 11:54 PM, Alexandre Bergel <[hidden email]> wrote:
Hi!

Leo, double clicks have been added to Roassal :-)

-=-=-=-=-=-=-=-=-=
| v es |
v := RTView new.
es := (RTBox new color: Color purple; size: 25) elementsOn: (1 to: 100).
es when: TRMouseDoubleClick do: [ :e | e element trachelShape color: Color red. v signalUpdate ].
v addAll: es.
RTGridLayout on: v elements.
v open.
-=-=-=-=-=-=-=-=-=

This is a contribution from Juan-Pablo Sandoval

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




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



--

"Every thing has its own flow"

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

Re: Roassal now support Double clicks

Leo Perard
Cool! But I have a question.
When I modify an element I (for example the color), I usually use the shape of the element, but then I have to update the element. In you example, you use the trachelShape and you do not update.

What is the right way to do it ? Maybe RTElement should have a message color: which does it well?


On Thu, Aug 7, 2014 at 6:46 AM, Tudor Girba <[hidden email]> wrote:
Very nice.

Doru


On Wed, Aug 6, 2014 at 11:54 PM, Alexandre Bergel <[hidden email]> wrote:
Hi!

Leo, double clicks have been added to Roassal :-)

-=-=-=-=-=-=-=-=-=
| v es |
v := RTView new.
es := (RTBox new color: Color purple; size: 25) elementsOn: (1 to: 100).
es when: TRMouseDoubleClick do: [ :e | e element trachelShape color: Color red. v signalUpdate ].
v addAll: es.
RTGridLayout on: v elements.
v open.
-=-=-=-=-=-=-=-=-=

This is a contribution from Juan-Pablo Sandoval

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




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



--

"Every thing has its own flow"

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




--
Cheers,
Leo Perard
University of Lille 1

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

Re: Roassal now support Double clicks

abergel
Hi Leo,

When I modify an element I (for example the color), I usually use the shape of the element, but then I have to update the element. In you example, you use the trachelShape and you do not update.

What is the right way to do it ? Maybe RTElement should have a message color: which does it well?

There is not really a best way. Modifying the trachelShape or the shape and then doing an update are equivalent.

Alexandre




On Thu, Aug 7, 2014 at 6:46 AM, Tudor Girba <[hidden email]> wrote:
Very nice.

Doru


On Wed, Aug 6, 2014 at 11:54 PM, Alexandre Bergel <[hidden email]> wrote:
Hi!

Leo, double clicks have been added to Roassal :-)

-=-=-=-=-=-=-=-=-=
| v es |
v := RTView new.
es := (RTBox new color: Color purple; size: 25) elementsOn: (1 to: 100).
es when: TRMouseDoubleClick do: [ :e | e element trachelShape color: Color red. v signalUpdate ].
v addAll: es.
RTGridLayout on: v elements.
v open.
-=-=-=-=-=-=-=-=-=

This is a contribution from Juan-Pablo Sandoval

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




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



--

"Every thing has its own flow"

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




--
Cheers,
Leo Perard
University of Lille 1
_______________________________________________
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