Re: How add text above a scrollbar/GTKHScale widget?? w/ a NEW widget? Which?



>When you have a scroll bar or GTKHScale how do you 
>add text above it to name/explain it?  Do you
>add a new widget? Which one?

this will stack the label below the hscale. obvious variations exist
for putting it above, to the left or right.

GtkWidget *hbox = gtk_hbox_new (...);
GtkWidget *hscale = gtk_hscale_new (...);
GtkLabel *label = gtk_label_new (...);

gtk_box_pack_start (GTK_BOX(hbox), hscale);
gtk_box_pack_start (GTK_BOX(hbox), label);

--p



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