Closed seandenigris closed 9 years ago
MOAnnouncer>>popupView: aBlock delay: ms zoomedInBy: aSymbolOrABlock
aBlock is never used.
Reported by benjamin.t.coman
on 2012-04-26 14:54:25
This fixes it for me
MOAnnouncer>>popupText: aBlock delay: ms
"open a popup text when the mouse enter a node"
self popupView:
[ :el :myView |
myView shape rectangle.
myView node: 'popup' forIt:
[ | popupText |
popupText := [aBlock value: el ] on: Error do: [ el asString ].
myView shape label.
myView node: popupText
].
] delay: ms
but I think there is more to it than that. The equivalent from version "VeronicaUquillas
7/20/2011 11:07" had the following, but I can't get that to work myself...
ifTrue:[ MOPopup show: ([aBlock value: ann element source model value: ann element
target model ] on: Error do: [ [ (aBlock moValue: ann modelElement) asString ] on:
Error do: [ 'Error when printing' ] ])
ifFalse:[ MOPopup show: ([ (aBlock moValue: ann modelElement) asString ] on: Error
do: [ 'Error when printing' ]) asString ]
Reported by benjamin.t.coman
on 2012-04-26 15:23:43
I have uploaded... Mondrian-Pharo-Morphic-BenComan.34 "Partial fix of MOAnnouncer>>popupText:
aBlock delay: ms for Issue 792. "
The use of the temporary variable was for clarity, and might be removed upon review
- but shouldn't add much delay in terms of human reaction time :)
This works as expected displaying for 'node value' for the following...
view interaction popupText: [ :es | |x| 1/0 ].
view shape label.
view node: 'node value'.
Reported by benjamin.t.coman
on 2012-04-26 15:41:08
Thanks. I will close the issue.
Reported by tudor@tudorgirba.com
on 2012-09-10 06:12:41
Fixed
Originally reported on Google Code with ID 792
Reported by
benjamin.t.coman
on 2012-04-26 14:07:22