LoginSignup
0
0

More than 1 year has passed since last update.

Gtk3アプリ ヘッダーにGtk.HeaderMenuを追加する

Last updated at Posted at 2021-10-06

ヘッダーにGtk.HeaderMenuを追加する

Screenshot from 2021-10-06 14-15-18.png

設置手順

Gtk.WindowのClient Side Window Decorationsをクリックする

Windowが分割されスペースができます
Screenshot from 2021-10-06 13-48-07.png

GtkHeaderBarをスペースへ入れる

スペースにHeaderBarを入れます
Screenshot from 2021-10-06 13-48-29.png
右上の閉じるボタン等が使用できるようにする
Show Window Controlesをクリックします・
Screenshot from 2021-10-06 14-06-24.png

閉じるボタン等が表示されます
Screenshot from 2021-10-06 13-49-18.png
タイトルを入力する
Screenshot from 2021-10-06 13-50-15.png

ヘッダーのボタンの登録数を変更する

Screenshot from 2021-10-06 13-50-36.png

ボタンとボタンの間隔の調整する

Screenshot from 2021-10-06 14-19-59.png

CustomTitleをクリックする

ヘッダーバーにあるタイトルをカスタマイずできます。ボタンなどに置き換えることが可能です。
Screenshot from 2021-10-06 13-51-19.png

Gtk.Lableで間隔を調整する
Screenshot from 2021-10-06 13-53-12.png
Screenshot from 2021-10-06 13-53-02.png

Screenshot from 2021-10-06 14-12-52.png

Gtk3アプリ パーシャルクラス自動生成ツールへ続く

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0