在Rascal图中悬停工具提示文字 [英] Hover tooltiptext in Rascal figure
本文介绍了在Rascal图中悬停工具提示文字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在Rascal中生成一个图形,在悬停过程中显示工具提示文字?我的意思是黄色的小东西,就像HTML中<a>
标记的title
属性所规定的一样.
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.
推荐答案
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"))
这篇关于在Rascal图中悬停工具提示文字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文