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 Dec 20, 2014 12:17 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Looking for examples of horizontal scrollbars in C
PostPosted: Sat Feb 18, 2012 7:33 pm 
Offline
GTK+ Geek

Joined: Sun Dec 04, 2011 9:29 pm
Posts: 71
Location: Seattle, WA
For my Options menu dropdown, i need three or four values from 1 to N-1. I think the easiest way would be to use scrollbar. I have found only one example and few tutorials on this. Anybody know of any example code in C?

thanks in advance


Top
 Profile  
 
 Post subject: Re: Looking for examples of horizontal scrollbars in C
PostPosted: Sun Feb 19, 2012 1:35 pm 
Offline
Never Seen the Sunlight

Joined: Wed Jul 23, 2008 10:31 am
Posts: 2406
Location: Slovenia
Hi.

I'm not sure how would one go about using scrollbars to select value. They are usually used to scroll some contents. For selecting values, you can use spin buttons or sliders.

Cheers,
Tadej


Top
 Profile  
 
 Post subject: Re: Looking for examples of horizontal scrollbars in C
PostPosted: Sun Feb 19, 2012 8:30 pm 
Offline
GTK+ Geek

Joined: Sun Dec 04, 2011 9:29 pm
Posts: 71
Location: Seattle, WA
tadeboro wrote:
Hi.

I'm not sure how would one go about using scrollbars to select value. They are usually used to scroll some contents. For selecting values, you can use spin buttons or sliders.

Cheers,
Tadej


after several hours of carefully hacking out a v 1.2 example of "range controls" i got TWO horizontal sliders. of course, as-is, both do the same things. i need to write new callbacks to the user can select which of the 0 -99 range he wants.

[[ FWIW, during my hacking, i updated the function to at least v 2.0. ]]


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 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