Re: EuGTK - GtkFileChooserDialog

new topic     » goto parent     » topic index » view thread      » older message » newer message

Choose one of the following constants:

  GTK_FILE_CHOOSER_ACTION_OPEN, 
  GTK_FILE_CHOOSER_ACTION_SAVE, 
  GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, 
  GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER 

Use it like this:

function Save() 
object dlg = create(GtkFileChooserDialog,"Save this file",win, 
	GTK_FILE_CHOOSER_ACTION_SAVE) 
	set(dlg,"add button","gtk-cancel",-1) 
	set(dlg,"add button","gtk-ok",1) 
if run(dlg) = 1 then  
	-- 
end if 
return 1 
end function 

Lots of other stuff you can do with that dialog: http://library.gnome.org/devel/gtk/unstable/GtkFileChooser.html

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu