GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sat Apr 19, 2014 5:12 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Four hscale widgets waiting for labels.
PostPosted: Fri Mar 02, 2012 6:30 am 
Offline
GTK+ Geek

Joined: Sun Dec 04, 2011 9:29 pm
Posts: 71
Location: Seattle, WA
i'm all done but adding in the "gender" code. [x] checkbox. so far i have four horizontal hscale bars and a means of printing the input via fprintf; but i have tried everything i can thing of to label the four bar and no-joy. i figured it would be a simple matter of doing something like this:

label = gtk_label_new("Pitch")
gtk_box_pack_start(.........)
gtk_widget_show(label);


for each label. It isn't that simple. nothing i've tried over more than three hours has worked. Any ideas? i'd like the strings to read 1.: "Pitch", 2) "Volume, 3) Speed WPM", and 4, "Delay"

i'll see if i can attach me src. i'd be very much obliged to learn what i've been doing WRong!

tia,

gary


Top
 Profile  
 
 Post subject: Re: Four hscale widgets waiting for labels.
PostPosted: Sat Mar 03, 2012 12:22 pm 
Offline
Never Seen the Sunlight

Joined: Thu Mar 24, 2011 2:10 pm
Posts: 328
Location: Sydney, Australia
Hang on, where exactly do you want your labels. Box packing them generally works fine. (You're also meant to set up an atk relationship with off widget labels with the widget they label, though this is probably not what you feel is missing). But yes send in some more code to show whether the hscales are all in a row or one on top of the other, and whether the labels are to be to the left, right or above them (or even better locale dependent). It isn't something like forgetting to show the box or pack it somewhere? Apart from that nt much can go wrong.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group