Re: status bars with multiples part (Luiz Rafael Culik Guimaraes) (gtk-list Digest, Vol 56, Issue 24)



GtkWidget* CStatusBar::Create()
{
//Main
m_pStatusBox = gtk_statusbar_new ();
gtk_widget_show(m_pStatusBox);
gtk_statusbar_set_has_resize_grip (GTK_STATUSBAR (m_pStatusBox), FALSE);

//CAPS
m_pBox1 = gtk_statusbar_new ();
gtk_widget_show (m_pBox1);
gtk_widget_set_size_request (m_pBox1, 140, 25);
gtk_statusbar_set_has_resize_grip (GTK_STATUSBAR (m_pBox1), TRUE);
gtk_box_pack_end (GTK_BOX (m_pStatusBox), m_pBox1, FALSE, FALSE, 0);
FX_CHAR *msg = g_strdup (("ins/CAPS: on"));
gtk_statusbar_push (GTK_STATUSBAR (m_pBox1), 0, msg);
g_free (msg);


//col number
m_pBox2 = gtk_statusbar_new ();
gtk_widget_show (m_pBox2);
gtk_widget_set_size_request (m_pBox2, 140, 25);
gtk_statusbar_set_has_resize_grip (GTK_STATUSBAR (m_pBox2), FALSE);
gtk_box_pack_end (GTK_BOX (m_pStatusBox), m_pBox2, FALSE, FALSE, 0);
msg = g_strdup ((" col number: 2"));
gtk_statusbar_push (GTK_STATUSBAR (m_pBox2), 0, msg);
g_free (msg);
......
return m_pStatusBox;
}



-- 
Sincerely,
Alfred Young
R&D, Application Architectures
www.foxitsoftware.com



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