Re: Beginner



David Aliaga wrote:
> I have create a window with GTK with some entry
> widgets in it.I want to use them to initialize some
> parameters in a program I am writing.

Hi Dave, you want something like this:

void
my_OK_callback()
{
// read values out of the entry widgets

// pop down dialog

// start your program running
}

int
main()
{
// make dialog window

// link OK button to my_OK_callback() above

// show dialog

   gtk_main();
}



J



========================================================== 
Coming soon:
Fabric of Vision 
Dress and Drapery in Painting 

19 June - 8 September 2002 

For information and tickets: 
http://www.nationalgallery.org.uk/exhibitions/fabric/



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