[[HomePage]] > [[SoftwareIndex|Software Index]] > [[SoftwareDevelopment|Development]] > [[gtkdialog|gtkdialog]] > [[gtkdialogDocTips|Tips and Tricks]] ====9.3 Understand the alignment==== Gtkdialog tends to align objects to the right side of the window. Exceptions are radiobuttons and checkboxes which are aligned to the left. It is easy to center whatever object in your gui. Here's some alignment explanation: - #### will place button to the right. - #### and button will fill whole line. - #### will place button in horizontal center. - #### will place button in center both vertical and horizontal. - ##...## will place text at left. xalign/yalign may hold 0, 1 or 2 for left, right or center. xalign/yalign works for other widgets as well. For buttons they describe placement of label rather than button itself. Using vertical rows can be troublesome, because often, the label defines the width of the objects. This leads to different width and it all looks crappy. You can override this by the attribute ##...##, where x represent the number of pixels for the width of the row. There is also a ##height-request## attribute. ===@@**#%[[gtkdialogDocTips9.2|❰❰❰ Previous]]#% #%[[gtkdialogDocTips|Index]]#% #%[[gtkdialogDocTips9.4|Next ❱❱❱]]#%**@@=== ---- ==Categories== CategoryGtkdialog