Hover tooltiptext in Rascal figure

此生再无相见时 提交于 2020-01-21 23:51:52

问题


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 a <a> tag in HTML.


回答1:


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"))


来源:https://stackoverflow.com/questions/20299595/hover-tooltiptext-in-rascal-figure

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!