开发者

How do you make a Caption Less Window in Gtk?

开发者 https://www.devze.com 2023-04-08 21:05 出处:网络
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 G

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

精彩评论

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