GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Thu Jul 31, 2014 9:38 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Stop and clear buttons
PostPosted: Sun Jan 01, 2012 8:17 pm 
Offline

Joined: Sun Jan 01, 2012 8:09 pm
Posts: 1
Hi,

I'm developping in C using GTK+ a pendulum and its motion.
I would like to know how I can create a button to stop and another one to clear the motion pendulum.

Thanks
Fátima


Top
 Profile  
 
 Post subject: Re: Stop and clear buttons
PostPosted: Tue Jan 03, 2012 12:16 am 
Offline
Never Seen the Sunlight

Joined: Thu Mar 24, 2011 2:10 pm
Posts: 328
Location: Sydney, Australia
Well creating the button is an easy process; you can check the functions for GtkButton and tutorials through the GTK website (http://www.gtk.org/documentation.php).
As to stopping and clearing motion you will have to develop your own c routines to do this and then use signals from the buttons to connect to them (also explained in the tutorials).


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: Google Adsense [Bot] 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