Re: [gtkmm] statusbar resizes when resizing window



> when i start my lill app (right now only the basic gtkmm interface
> layout for the main window), the statusbar has the right size, since
> the window is really small (no content for my treeviews and so on).
> but when i resize the window, the statusbar also gets bigger in
> height, whats "not good" *g*

Check the reference guide for Gtk::Box
(http://www.gtkmm.org/gtkmm2/docs/reference/html/classGtk_1_1Box.html)

I think you've to set the right PackOption when you use pack_start. Look in the code for the change:

> MainWindow::MainWindow()
> {
>   set_title("gtkMailMon");
>   // set_size_request(600, 400);
>   // set_border_width(5);
> 
>   add(mainBox);
> 
>   // content for mainBox
>   mainBox.pack_start(mainMenu);
>   mainBox.pack_start(mainPaned);
>   //mainBox.pack_start(m_statusbar);

mainBox.pack_start(m_statusbar, Gtk::PACK_SHRINK);

> 
>   //content for mainPaned
>   mainPaned.add1(scrollwinBoxes);
>   mainPaned.add2(scrollwinMails);
> 
>   scrollwinBoxes.add(treeBoxes);
>   scrollwinMails.add(treeMails);
> 
>   // configure some widgets/give default values
>   scrollwinBoxes.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
>   scrollwinMails.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
>   m_statusbar.push("< none >",0);
> 
>   show_all_children();
> }
> ---
> think thats all whats important. would be nice if someone could help me very quickly :-)))

I hope this helps you. I couldn't be quicker :-)

Cheers,

  David

-----------------------------------------------------
Mail.be, WebMail and Virtual Office
http://www.mail.be




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