Hover tooltiptext in Rascal figure

后端 未结 1 760
傲寒
傲寒 2021-01-23 15:14

Is it possible to produce a figure in Rascal that shows a tooltiptext during hover? I mean the little yellow thing like the one prescribed by the title attribute of

1条回答
  •  暖寄归人
    2021-01-23 15:37

    yes in these slides (http://homepages.cwi.nl/~jurgenv/teaching/evolution1314/slides/intro-visualization.pdf) an example is shown:

    FProperty popup(str S){
     return mouseOver(box(text(S), fillColor("lightyellow"),
     grow(1.2),resizable(false)));
    }
    
    box(size(50),fillColor("red"), popup("Hello"))
    

    0 讨论(0)
提交回复
热议问题