3.15. 修復(fù)提示信息問題(OLEX2使用手冊)
原文如下:
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. 修復(fù)提示信息問題
功能:
>>GlTooltip(bool)
>>echo GlTooltip()
這兩個指令允許修改或查詢當(dāng)前工具提示管理。默認(rèn)情況下,有用于Windows的本地工具提示和用于其他平臺的OpenGL模擬工具提示。區(qū)別的原因是,Mac上的本地工具提示不是在設(shè)置時呈現(xiàn)的(至少在wxMac中是這樣),而是在設(shè)置之后呈現(xiàn)的。這將導(dǎo)致顯示以前的工具提示而不是當(dāng)前的。GTK的情況仍在調(diào)查中,但舊版本的工具提示將不會被呈現(xiàn)。這可以使用GlTooltip(true/false)指令覆蓋,設(shè)置將在正常程序終止時保存。在Windows以外的平臺上呈現(xiàn)本地工具提示會降低性能,因?yàn)樗惺髽?biāo)移動事件(除非按下鼠標(biāo)按鈕)都會導(dǎo)致場景重新繪制。使用OpenGl模擬工具提示僅當(dāng)鼠標(biāo)移動停止至少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
