First topic. I'm new to GTK.
I'm doing a C++ project with Gtk.
I have to put a button in a frame. I would like to know if it is possibile to to put the button not in the centre and with th size that I want inside the frame.
How can i do it?
Code:
vbox = gtk_vbox_new (FALSE, NULL);
gtk_container_add (GTK_CONTAINER (window), vbox);
menubar = gtk_menu_bar_new ();
gtk_box_pack_start (GTK_BOX (vbox), menubar, FALSE, FALSE, NULL);
hbox = gtk_hbox_new (FALSE, NULL);
gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, NULL);
frame = gtk_frame_new (NULL);
gtk_frame_set_label_align (GTK_FRAME (frame), 0.0, 0.0);
gtk_frame_set_shadow_type( GTK_FRAME(frame), GTK_SHADOW_ETCHED_OUT);
gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, NULL);
button = gtk_button_new_with_label ("Load map");
gtk_box_pack_start (GTK_BOX (frame), button, TRUE, TRUE, NULL);
drawing_area = gtk_drawing_area_new ();
gtk_drawing_area_size (GTK_DRAWING_AREA (drawing_area), 600, 400);
gtk_box_pack_start (GTK_BOX (hbox), drawing_area, TRUE, FALSE, NULL);
of course i've created and packed the Main window