I’ve just checked :-)
I am not sure to understand what is the problem you are facing.
Have you tried:
-=-=-=-=-=-=-=-=-=-=-=-=
| v e |
v := RTView new.
e := (RTBox new size: 50) element.
e @ (RTMenuActivable new item: 'inspect' action: #inspect; item: 'browse'
action: [ :o | o class browse ]).
v add: e.
v
-=-=-=-=-=-=-=-=-=-=-=-=
Thanks Juraj for having introduced the class RTMenuActivable!
Cheers,
Alexandre
On Mar 29, 2014, at 6:05 PM, Usman Bhatti <usman.bhatti(a)gmail.com> wrote:
Hi Alex,
How do you trigger the menu action of an RTElement programmatically?
In Roassal one, I could do:
menuActivable := (anElement getInteraction: ROMenuActivable).
actionBlock := (menuActivable actionNamed: 'my action').
actionBlock value value: anElement.
In Roassal 2, I cannot get the menu actions because everything is happening with
announcements. How can I trigger the RTMenuActivable for my elements in the view because
when generating my events programmatically by simulating mouse-clicks, my image becomes
non-responsive after a few tries.
tx,
usman
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.