开发者

How do you make a Caption Less Window in Gtk?

I want to make a Window in Gtk (Gtk# to be specific, but GTK+ 开发者_高级运维or any other binding will do, the functions are generally the same) without a caption. Kind of like Mozilla Firefox 4 and Google Chrome. I don't know what to call it, caption less or widget on caption? Any Help? Thanks


The term is 'decorated'.

In plain GTK+, this is gtk_window_set_decorated() and in GTK#, do this.Decorated = false; in your forms constructor, that's all.

Note that decoration is not only the title bar but also the frame that allows for resizing. There is unfortunately no way to have a resizable but title-bar-less window, you will have to handle border mouse-over-detection and resizing yourself.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜