Project

General

Profile

DialogFileChooser » History » Version 1

iri, 03/06/2011 11:28 PM

1 1 iri
h1. DialogFileChooser
2
3
<pre>
4
fun cbOpenFile (widget, userparam, path)=
5
    _fooS path;
6
    0;;
7
8
fun OpenADialog (window, userparam) =
9
    _gtkDialogFileChooserNew 
10
	_channel 
11
	window
12
	"Choose a file, please !" 
13
	nil
14
	SCOL_GTK_ACTION_OPEN 
15
	["*.png" "Image"] :: ["*.*" "All"] :: nil
16
	@cbOpenFile
17
	userparam;
18
    0;;
19
</pre>
20