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



Hi Alfred Young

Thanks for the suggestion,

but for updating the data how you do?

Regards
Luiz



----- Original Message ----- From: <haitao_yang foxitsoftware com>
To: <gtk-list gnome org>
Sent: Thursday, December 18, 2008 11:22 PM
Subject: 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

_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list




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