Hi, Does anyone knows wheter toolTip: can still be used on a View with something like:
moveBlockWithPoint: movingPoint
blah blah somecondition ifTrue:[ self tooltip: [:myView | myView getUserHelpMessageForToolTip]].
I have the impression it can only be used with ClickableGraphic as all the examples now seem to use this class ?
Regards,
@+Maarten, _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
I'm using this kind of tooltip on an InputFieldView, works just fine.
VW7.9.
view tooltip: [ .... ]
When the mouse moves over the view, the tip is displayed.
Changed methods in HoverHelpWindow:
openTooltip: aVisualGraphic
"Defer to the tooltipAssistant for the displayBox bounds. The assistant may have its own ideas about the size and location of the displayBox, and may choose to ignore the component's bounds." self lock critical:
[self component: aVisualGraphic asVisualPart; displayBox: (self tooltipDisplayBox). "After the window bounds is established with #displayBox:, reset the component bounds." component bounds: self bounds. self open] tooltipDisplayBox
"Preferentially align the left edge of the help window with the current mouse location and the top edge with the bottom of the mouse pointer box. Make sure the result fits the screen!" | mouse extent origin |
mouse := self sensor state mousePoint. extent := component preferredBounds extent. origin := mouse + (0 @ 18). origin y > Screen default bounds bottom ifTrue: [origin := mouse - (0 @ (2 + extent y))]. ^Screen default makeRectangleVisible: (origin extent: extent) __________________________________________________________
Important Note: This e-mail may contain trade secrets or privileged, undisclosed or otherwise confidential information. If you have received this e-mail in error, you are hereby notified that any review, copying or distribution of it is strictly prohibited. Please inform us immediately and destroy the original transmittal. Thank you for your cooperation. Von: [hidden email] [mailto:[hidden email]] Im Auftrag von [hidden email] Gesendet: Dienstag, 12. März 2013 13:21 An: VWNC Betreff: [vwnc] Tooltip: Hi,
Does anyone knows wheter toolTip: can still be used on a View with something like:
moveBlockWithPoint: movingPoint
blah blah somecondition ifTrue:[ self tooltip: [:myView | myView getUserHelpMessageForToolTip]].
I have the impression it can only be used with ClickableGraphic as all the examples now seem to use this class ?
Regards,
@+Maarten, _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |