Re:Tcl: Everything Is a String
by foobarian on Monday October 28, 2019 @03:47PM
(#21380836)
The event handler based vector graphics in Tk were unmatched until HTML 5 and the canvas. And then there was the easy and fantastically well documented C extensibility...
[ Parent
| on HN ]
Tagging system of Tk's canvas is unmatched in HTML. Pity they (HTML designers) never learn.
Basically, in Tk, you can add a tag to an element of your drawing in canvas and assign mouse (or keyboard) event handlers to change colors or other attributes on entry and exit of mouse cursor.
I made a OO/relational database schema visualization in Tk, it was breese to navigate - once you hover over a relation, you can see classes highlighted; follow highlighted relation to get to them. And once you highlight class of objects you can see to which relations it belongs.
It tooks two foreach loops to get that behavior. As far as I know, HTML5 canvas does not support that out of the box.