initial commit
[rofl0r-KOL.git] / main_topensavedialog.htm
blob4ecde9e7cf4bd833efb6bfa75f6f6ee9c5954095
1 <html>
2 <head>
3 <title>KOL Help: TOpenSaveDialog object (main frame)</title>
4 <base target="_top">
5 </head>
7 <body bgcolor="#FFFFEF" text="#000000" link="#008080" vlink="#008000" alink="#808000">
8 <p><font face="Courier" color="#800080"><b>TOpenSaveDialog( unit <a href=kol_pas.htm>KOL.pas</a> )
9 <font face="Wingdings">ï</font> <a href=tobj.htm>TObj</a>
10 <font face="Wingdings">ï</font> <a href=_tobj.htm>_TObj</a>
11 </b></font></p>
12 <p><b>
13 TOpenSaveDialog = object( <a href=tobj.htm target="_top">TObj</a> )
14 </b></p>
15 Object to show standard Open/Save dialog. Initially provided
16 for XCL by Carlo Kok.
17 <h3 align="center"><font color="#FF8080">TOpenSaveDialog properties</font></h3>
18 <a name="filename"></a>
19 <p>
20 <font face="Courier" color="#800080"><b>property</b> <font color="#808000"><b>Filename</b></font>: <b>String</b>;</font>
21 <br>
22 Filename is seperated by #13 when multiselect is true and the first
23 file, is the path of the files selected.
24 <pre>
25 C:\Projects
26 Test1.Dpr
27 Test2.Dpr
28 </pre>
29 If only one file is selected, it is provided as (e.g.)
30 C:\Projects\Test1.dpr
31 <br> For case when OSAllowMultiselect option used, after each
32 call initial value for a Filename containing several files prevents
33 system from opening the dialog. To fix this, assign another initial
34 value to Filename property in your code, when you use multiselect.
35 </p>
36 <a name="initialdir"></a>
37 <p>
38 <font face="Courier" color="#800080"><b>property</b> <font color="#808000"><b>InitialDir</b></font>: <b>string</b>;</font>
39 <br>
40 Initial directory path. If not set, current directory (usually
41 directory when program is started) is used.
42 </p>
43 <a name="filter"></a>
44 <p>
45 <font face="Courier" color="#800080"><b>property</b> <font color="#808000"><b>Filter</b></font>: <b>String</b>;</font>
46 <br>
47 A list of pairs of filter names and filter masks, separated with '&brvbar;'.
48 If a mask contains more than one mask, it should be separated with ';'.
49 E.g.:
50 <p align=left><font face="Courier" color="008080"><b><pre>
51 <font color="A08020">'All files|*.*|Text files|*.txt;*.1st;*.diz'</font>
52 </pre></b></font></p>
53 </p>
54 <a name="filterindex"></a>
55 <p>
56 <font face="Courier" color="#800080"><b>property</b> <font color="#808000"><b>FilterIndex</b></font>: <b>Integer</b>;</font>
57 <br>
58 Index of default filter mask (0 by default, which means &quot;first&quot;).
59 </p>
60 <a name="opendialog"></a>
61 <p>
62 <font face="Courier" color="#800080"><b>property</b> <font color="#808000"><b>OpenDialog</b></font>: <b>Boolean</b>;</font>
63 <br>
64 True, if &quot;Open&quot; dialog. False, if &quot;Save&quot; dialog. True is default.
65 </p>
66 <a name="title"></a>
67 <p>
68 <font face="Courier" color="#800080"><b>property</b> <font color="#808000"><b>Title</b></font>: <b>String</b>;</font>
69 <br>
70 Title for dialog.
71 </p>
72 <a name="options"></a>
73 <p>
74 <font face="Courier" color="#800080"><b>property</b> <font color="#808000"><b>Options</b></font>: <a href=kol_pas.htm#topensaveoptions target="_top">TOpenSaveOptions</a>;</font>
75 <br>
76 Options.
77 </p>
78 <a name="defextension"></a>
79 <p>
80 <font face="Courier" color="#800080"><b>property</b> <font color="#808000"><b>DefExtension</b></font>: <b>String</b>;</font>
81 <br>
82 Default extention. Set it to desired extension without leading period,
83 e.g. 'txt', but not '.txt'.
84 </p>
85 <a name="wndowner"></a>
86 <p>
87 <font face="Courier" color="#800080"><b>property</b> <font color="#808000"><b>WndOwner</b></font>: THandle;</font>
88 <br>
89 Owner window handle. If not assigned, <a href=kol_pas.htm#applet#handle>Applet.Handle</a> is used (whenever
90 possible). Assign it, if your application has stay-on-top forms, and
91 a separate <a href=kol_pas.htm#applet target="_top">Applet</a> object is used.
92 </p>
93 <h4 align="center"><font color="black">Properties, inherited from <a href="tobj.htm" target="_top">TObj</a></font></h4>
94 <h3 align="center"><font color="#FF8080">TOpenSaveDialog methods</font></h3>
95 <a name="destroy"></a>
96 <p>
97 <font face="Courier" color="#800080"><b>destructor</b> <font color="#808000"><b>Destroy</b></font>; <b>virtual</b>;</font>
98 <br>
99 destructor
100 </p>
101 <a name="execute"></a>
103 <font face="Courier" color="#800080"><b>Function</b> <font color="#808000"><b>Execute</b></font>: <b>Boolean</b>;</font>
104 <br>
105 Call it after creating to perform selecting of file by user.
106 </p>
107 <h4 align="center"><font color="black">Methods, inherited from <a href="tobj.htm" target="_top">TObj</a></font></h4>
108 <h3 align="center"><font color="#FF8080">TOpenSaveDialog events</font></h3>
109 <h4 align="center"><font color="black">Events, inherited from <a href="tobj.htm" target="_top">TObj</a></font></h4>
110 <h3 align="center"><font color="#FF8080">TOpenSaveDialog fields</font></h3>
111 <h4 align="center"><font color="black">Fields, inherited from <a href="tobj.htm" target="_top">TObj</a></font></h4>
112 <hr>
113 <p align="center">[&nbsp;<a href=index.htm>Index</a>&nbsp;]</p>
114 <p align="center"><font face="Comic Sans MS"><small>This help is generated 22-Sep-2005 by KOL Help generator, (C) 2000-2001 by Vladimir Kladov<br>Modified (C) 2003 by Alexander Bartov</small></font></p>
115 </body>
116 </html>