欢迎光临散文网 会员登陆 & 注册

3.15. 修复提示信息问题(OLEX2使用手册)

2021-02-27 21:07 作者:DJ_Tokyo  | 我要投稿

原文如下:


Fix tooltips problems


Functionality:


>>GlTooltips(bool)


>>echo GlTooltips()


These two commands allow modifying or querying current tooltip management. By default there are native tooltips for Windows and OpenGL emulated ones fo the other platforms. The reason in the distinction is that native tooltips on Mac are rendered not at the time they were set (at least with wxMac), but after. This leads to displaying previous tooltip instead of current. The case of GTK is still under the investigation, but on older versions of tooltips would not be rendered. This can be overridden using the GlTooltip(true/false) command, the setting will be saved upon normal program termination. Rendering of the native tooltips on platforms, other than Windows will degrade the performance, since all mouse movement events (unless a mouse button is pressed) will cause the scene re-drawing. Using the OpenGl emulation of the tooltip will render the scene only when the mose movement stopped for at least 1/2 of the second.


To control the OpenGl tooltip emulation appearance the use can use the following command:


>>editmaterial Tooltip


译文如下:


3.15. 修复提示信息问题


功能:


>>GlTooltip(bool)


>>echo GlTooltip()


这两个指令允许修改或查询当前工具提示管理。默认情况下,有用于Windows的本地工具提示和用于其他平台的OpenGL模拟工具提示。区别的原因是,Mac上的本地工具提示不是在设置时呈现的(至少在wxMac中是这样),而是在设置之后呈现的。这将导致显示以前的工具提示而不是当前的。GTK的情况仍在调查中,但旧版本的工具提示将不会被呈现。这可以使用GlTooltip(true/false)指令覆盖,设置将在正常程序终止时保存。在Windows以外的平台上呈现本地工具提示会降低性能,因为所有鼠标移动事件(除非按下鼠标按钮)都会导致场景重新绘制。使用OpenGl模拟工具提示仅当鼠标移动停止至少1/2秒时才会渲染场景。


要控制OpenGl工具提示模拟外观,用户可以使用以下指令:


>>editmaterial Tooltip


公众号文章链接:

https://mp.weixin.qq.com/s?__biz=MzU0NjkzMTM1MQ==&mid=2247485364&idx=2&sn=75be2b878776c94c0066e8e762293305&chksm=fb57504ccc20d95ad39ef45bb607b98d599fd94ee591e1d5ad2375a73e9d793893325ebd7612&token=1126004319&lang=zh_CN#rd



3.15. 修复提示信息问题(OLEX2使用手册)的评论 (共 条)

分享到微博请遵守国家法律