开发者

How to force a gtk tooltip to be shown?

I have an applicatio开发者_Go百科n and I want to show a tooltip every time a user set the focus on a entry widget. Do you know a way to force a gtk Tooltip to be shown?, because right now it only shows when the user puts the mouse pointer over the entry, but the application in production will have no mouse at all.


You can't force the tooltip to show, but you could try making your own tooltip-like window using stuff like gtk_window_new(GTK_WINDOW_POPUP) and gtk_window_set_type_hint(window, GDK_WINDOW_TYPE_HINT_TOOLTIP). Then you can show this window at any time and place you choose. You might want to look at the source code of GtkTooltip to see how they implement the tooltip windows.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜