Re: Insert Various GTKWidgets into a dlg_window



I will try that out thanks Andrew

Regards,
Rui

On Friday, June 28, 2013, Andrew Potter wrote:

On Fri, Jun 28, 2013 at 10:45 AM, Rui Pedro Caldeira
<rpcaldeira outlook com <javascript:;>> wrote:
I have all sorts os GTKWidgets (buttons, labels, comboboxes,...) and a
dlg_window.

And I would like to know how I can put all those widgets in the
dlg_window
and set their size and position in the window.

Assuming a dlg_window is an object that is or derives from GtkWindow,
you are probably looking for something that derives from [1]
GtkContainer, such as the recommended [2] GtkGrid.

The recommended way to use Gtk+ is to use relative positioning and
alignment, rather than absolute size and position; this allows your
application to present a usable window across a variety of window
sizes, languages, and fonts. However, if you _must_ use absolute sizes
and positions, [3] GtkFixed is available.

[1] https://developer.gnome.org/gtk3/stable/GtkContainer.html
[2] https://developer.gnome.org/gtk3/stable/GtkGrid.html
[3] https://developer.gnome.org/gtk3/stable/GtkFixed.html
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org <javascript:;>
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



-- 
Cumprimentos,
Rui Pedro Caldeira
Licenciatura em Engenharia Informática
Departamento de Informática
Faculdade de Ciências da Universidade de Lisboa
http://webpages.alunos.fc.ul.pt/~fc38848


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]