From: Jens P. <pet...@re...> - 2003-01-20 05:34:39
|
Nick Name <nic...@in...> writes: > I have three questions: > > 1. How could I resize an Image widget leaving to gtk2 the task to resize > and filter the image? How would one do it from C say? > 2. How do I build documentation? I can't understand the readme. Or else: > is the documentation on the web site updated? I leave that for Axel. > 3. How do I use the file selection dialog? I see no interface to the ok > button! Are you using cvs? This works for me at least do filesel <- fileSelectionNew "Find file" (ok, cancel) <- fileSelectionGetButtons filesel onClicked ok (openFile filesel) onClicked cancel (widgetDestroy filesel) widgetShowAll filesel where openFile :: FileSelection -> IO () openFile fsel = do file <- fileSelectionGetFilename fsel widgetDestroy fsel ..... > Where should I look to fully understand the classes and types hierarchy? > For example, when is "containerAdd" allowed and when is it not allowed ? That sounds like a gtk question. See for example: <http://developer.gnome.org/doc/API/2.0/gtk/GtkContainer.html> Hope that helps a little, Jens |