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
Very nice.
Doru
On Wed, Aug 6, 2014 at 11:54 PM, Alexandre Bergel alexandre.bergel@me.com 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 Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
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 tudor@tudorgirba.com wrote:
Very nice.
Doru
On Wed, Aug 6, 2014 at 11:54 PM, Alexandre Bergel <alexandre.bergel@me.com
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 Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Every thing has its own flow"
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
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 tudor@tudorgirba.com wrote: Very nice.
Doru
On Wed, Aug 6, 2014 at 11:54 PM, Alexandre Bergel alexandre.bergel@me.com 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 Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Every thing has its own flow"
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Cheers, Leo Perard University of Lille 1 _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev