[vwnc] Tooltip support

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] Tooltip support

Stevenson, Dave (contr)
[vwnc] Tooltip support

Last June there was an exchange between Annick and Travis about tool tips that didn't go quite as far as I need. I have a HotDraw editor application in which I try:

postBuildWith: aBuilder
        (self widgetAt: #drawing) tooltip: [:view | Transcript tab; print: view. 'the drawing'].

Since the drawing is a visual part:

Object
        VisualComponent
                VisualPart
                        Figure
                                CompositeFigure
                                        Drawing

it understands #tooltip:. Since the drawing has a controller:

Object
        Controller
                DrawingController

it seems to satisfy the requirement (except the part about being a View) in the method comment of VisualPart>>tooltip:, which says:

        "... While this is implemented in VisualPart, intercepting mouse/keyboard/window events depends on counterpart Controller behavior, so tooltips are only meaningful to do for a View object -- for now."

So I have the visual part (drawing), the tooltip, and the controller. What is still needed to get it working?

While I appreciate Vassili's praise of the state machine:

http://www.cincomsmalltalk.com/userblogs/vbykov/blogView?showComments=true&entry=3346524723

(which even looks vaguely familiar after staring at HotDraw state machine code for a while now) I still can't seem to figure out why the hover help state machine isn't firing for my poor little drawing...


Stevenson, Dave (contr) <[hidden email]>
972-946-4890


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc