简体   繁体   中英

Buttons in Glade, why are they square?

I'm new at GTK. I'm using Glade to make an interface and just want to insert objects (like buttons and others) into a container. I've choosen GtkFixed so that all elements can be freely located and sized. The problem is that when i drag a button for example, the button apparently gets it size from the parent (in this case the container) and takes a square shape. Here's an image 屏幕截图

I want the button to take the standard size, just like a rectangule or something. What i'm i doing wrong? I've checked some options in the container but can't figure out the way. Thanks.

You have to remove the tick from Height request and Width request (I don't know the equivalent names in your language).

Besides, you should be aware that GtkFixed is difficult to use when the window can be resized. GtkBox is often easier.

常用标签的屏幕截图

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM