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(a)tudorgirba.com> wrote:
Very nice.
Doru
On Wed, Aug 6, 2014 at 11:54 PM, Alexandre Bergel <alexandre.bergel(a)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(a)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(a)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(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev