Scaling image, Alignment and Separator



   Hi all.
I have two problems. First of all I want to scale image because I don't know
how. I searched google.pl and documentation. I find nothing.
Code:
     class MyWindow : public Gtk::Window
     {
        public:
           MyWindow();

       private:
          Gtk::Image image;
     };

     MyWindow::MyWindow()
     {
     ...
        image.set("image.png");

       show_all_children;
     }

Secondly I wrote this code:

     #include <gtkmm/alignment.h>
     #include <gtkmm/box.h>
     #include <gtkmm/label.h>
     #include  <gtkmm/separator.h>
     #include  <gtkmm/window.h>

     class MainWindow : public Gtk::Window
     {
	     public:
	     	MainWindow();

	     protected:
	     	Gtk::VBox MainVBox;

		Gtk::Alignment Title_Label_Alignment;
			Gtk::Label Title_Label;

		Gtk::Alignment Title_HSeparator_Alignment;
			Gtk::HSeparator Title_HSeparator;
     };

     MainWindow::MainWindow()
     {
	set_title("Text");
	set_border_width(5);

	add(MainVBox);

	MainVBox.pack_start(Title_Label_Alignment);
		Title_Label_Alignment.add(Title_Label);

	MainVBox.pack_start(Title_HSeparator_Alignment);
		Title_HSeparator_Alignment.add(Title_HSeparator);


	Title_Label_Alignment.set(0., 0., 0., 0.);
		Title_Label.set_markup("<big>Markup text</big>");

	Title_HSeparator_Alignment.set(0., 0., 1., 0.);


	show_all_children();
     }

Why Title_HSeparator_Alignment isn't on the top?
-- 
View this message in context: http://www.nabble.com/Scaling-image%2C-Alignment-and-Separator-tp25097523p25097523.html
Sent from the Gtkmm mailing list archive at Nabble.com.



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