source: branches/mediafolder/prog_tutorial/old/windowfunctions.inc

Last change on this file was 2, checked in by stevenhl, 8 years ago

Import sources from cwmm-full.zip dated 2005-03-21

File size: 7.6 KB
Line 
1.******************************************************
2:h2 res=2050
3width=30%
4.winFileDlg
5:link reftype=hd res=2051
6auto dependent group=2.
7:p.
8:link reftype=hd res=2051.Syntax:elink.
9.br
10:link reftype=hd res=2053 dependent.Returns:elink.
11.br
12:link reftype=hd res=2054 dependent.Remarks:elink.
13.*.br
14.*:link reftype=hd res=315.Usage:elink.
15.*.br
16.*:link reftype=hd res=416 dependent.Example:elink.
17
18:h2 res=2051
19x=30%
20width=70%
21hide
22group=2
23.winFileDlg - Syntax
24:xmp.
25/* Display a file dialog. It may be an 'open'- or
26 a 'Save as' dialog */
27
28flag /* 0: open dialog, 1: SaveAs dialog */
29title /* Title of the file dialog */
30fileMask /* The file mask for example *.exe */
31
32:p.
33fileName=MFldrCallWinFunc("winFileDlg",
34 flag, title, fileMask);
35:exmp.
36
37
38:h2 res=2053
39x=30%
40width=70% height=35%
41group=3
42hide
43.winFileDlg - Return value
44:p.
45:hp2.fileName:ehp2. string
46:p.
47Selected file name
48:p.
49In case of error :hp2.ERROR::ehp2. is returned.
50
51
52:h2 res=2054
53x=30%
54width=70%
55hide
56group=2
57.winFileDlg - Remarks
58:p.
59The frame handle of the media folder is given to the skript as a parameter
60when started.
61
62
63.******************************************************
64:h2 res=2010
65width=30%
66.winQueryContainerHWND
67:link reftype=hd res=2011
68auto dependent group=2.
69:p.
70:link reftype=hd res=2011.Syntax:elink.
71.br
72:link reftype=hd res=2013 dependent.Returns:elink.
73.br
74:link reftype=hd res=2014 dependent.Remarks:elink.
75.*.br
76.*:link reftype=hd res=315.Usage:elink.
77.*.br
78.*:link reftype=hd res=416 dependent.Example:elink.
79
80:h2 res=2011
81x=30%
82width=70%
83hide
84group=2
85.winQueryContainerHWND - Syntax
86:xmp.
87/* This function returns the container handle from
88 the frame handle of a folder */
89
90frameHandle /* Handle of the folder frame */
91:p.
92containerHandle=MFldrCallWinFunc("winQueryContainerHWND",
93 frameHandle);
94:exmp.
95
96
97:h2 res=2013
98x=30%
99width=70% height=35%
100group=3
101hide
102.winQueryContainerHWND - Return value
103:p.
104:hp2.containerHandle:ehp2. numeric
105:p.
106Handle to the container of a folder.
107
108
109:h2 res=2014
110x=30%
111width=70%
112hide
113group=2
114.winQueryContainerHWND - Remarks
115:p.
116The frame handle of the media folder is given to the skript as a parameter
117when started.
118
119
120.******************************************************
121:h2 res=2020
122width=30%
123.winQueryContainerRecord
124:link reftype=hd res=2021
125auto dependent group=2.
126:p.
127:link reftype=hd res=2021.Syntax:elink.
128.br
129:link reftype=hd res=2023 dependent.Returns:elink.
130.br
131:link reftype=hd res=2024 dependent.Remarks:elink.
132.br
133:link reftype=hd res=2025.Parameters:elink.
134.*.br
135.*:link reftype=hd res=416 dependent.Example:elink.
136
137:h2 res=2021
138x=30%
139width=70%
140hide
141group=2
142.winQueryContainerRecord - Syntax
143:xmp.
144/* This function returns the requested item from
145 the specified container handle from */
146
147containerHandle /* Handle to the container */
148pRec /* Pointer to previous item or 0 */
149cmd /* Value specifying which item to query */
150fsSearch /* Enumeration order */
151:p.
152ptrRec=MFldrCallWinFunc("winQueryContainerRecord",
153 containerHandle, pRec,
154 cmd, fsSearch);
155:exmp.
156
157
158:h2 res=2023
159x=30%
160width=70% height=35%
161group=3
162hide
163.winQueryContainerRecord - Return value
164:p.
165:hp2.ptrRec:ehp2. numeric
166:p.
167Pointer to a container item.
168
169
170:h2 res=2024
171x=30%
172width=70%
173hide
174group=2
175.winQueryContainerRecord - Remarks
176:p.
177The frame handle of the media folder is given to the skript as a parameter
178when started.
179
180:h2 res=2025
181x=30%
182width=70%
183hide
184group=2
185.winQueryContainerRecord - Parameters
186:p.
187:ul.
188:li.:hp2.containerHandle:ehp2.
189.br
190Handle to a container.
191:li.:hp2.pRec:ehp2.
192.br
193Pointer to previous item or 0. This parameter is ignored if CMA_FIRST or CMA_LAST is specified.
194:li.:hp2.cmd:ehp2.
195.br
196Command value specifying which container item to retrieve.
197:sl.
198:li.CMA_FIRST 0x0010
199.br
200Get first container record.
201:li.CMA_LAST 0x0020
202.br
203Get last container record.
204:li.CMA_PREV 0x0080
205.br
206Get previous container record of :hp1.pRec:ehp1..
207:li.CMA_NEXT 0x0100
208.br
209Get next container record after :hp1.pRec:ehp1..
210:esl.
211:li.:hp2.fsSearch:ehp2.
212.br
213Enumeration order.
214:sl.
215:li.CMA_ITEMORDER 1
216.br
217Query records in item order.
218:li.CMA_ZORDER 8
219.br
220Query records in z-order. The last record is the last to be drawn. This flag
221is only valid in icon view.
222:esl.
223
224:eul.
225
226.******************************************************
227:h2 res=2040
228width=30%
229.winQueryContRecEmphasis
230:link reftype=hd res=2041
231auto dependent group=2.
232:p.
233:link reftype=hd res=2041.Syntax:elink.
234.br
235:link reftype=hd res=2043 dependent.Returns:elink.
236.br
237:link reftype=hd res=2044 dependent.Remarks:elink.
238.br
239:link reftype=hd res=2045.Parameters:elink.
240.*.br
241.*:link reftype=hd res=416 dependent.Example:elink.
242
243:h2 res=2041
244x=30%
245width=70%
246hide
247group=2
248.winQueryContRecEmphasis - Syntax
249:xmp.
250/* This function returns a record with a certain
251 emphasis from the specified container handle */
252
253containerHandle /* Handle to the container */
254pRec /* Pointer to previous item or 0 */
255fEmphasis /* Emphasis mask */
256:p.
257ptrRec=MFldrCallWinFunc("winQueryContainerRecord",
258 containerHandle, pRec,
259 fEmphasis);
260:exmp.
261
262
263:h2 res=2043
264x=30%
265width=70% height=35%
266group=3
267hide
268.winQueryContRecEmphasis - Return value
269:p.
270:hp2.ptrRec:ehp2. numeric
271:p.
272Pointer to a container record or 0. In case of an error -1 is returned.
273
274
275:h2 res=2044
276x=30%
277width=70%
278hide
279group=2
280.winQueryContRecEmphasis - Remarks
281:p.
282The frame handle of the media folder is given to the skript as a parameter
283when started.
284
285:h2 res=2045
286x=30%
287width=70%
288hide
289group=2
290.winQueryContRecEmphasis - Parameters
291:p.
292:ul.
293:li.:hp2.containerHandle:ehp2.
294.br
295Handle to a container.
296:li.:hp2.pRec:ehp2.
297.br
298Pointer to previous item or CMA_FIRST (0x0010).
299:li.:hp2.fEmphasis:ehp2.
300.br
301Enumeration order.
302:sl.
303:li.CRA_SELECTED 1
304.br
305Selected records.
306:li.CRA_CURSORED 4
307.br
308Records drawn with a selection cursor.
309:li.CRA_INUSE 8
310.br
311Records with in-use emphasis
312:li.CRA_FILTERED 16
313.br
314Filtered records that means hidden from view.
315:li.CRA_SOURCE 0x4000
316.br
317Records drawn with source emphasis.
318:li.CRA_DISABLED 0x1000
319.br
320Disabled records.
321:esl.
322:eul.
323
324.******************************************************
325:h2 res=2030
326width=30%
327.winObjectFromPRec
328:link reftype=hd res=2031
329auto dependent group=2.
330:p.
331:link reftype=hd res=2031.Syntax:elink.
332.br
333:link reftype=hd res=2033 dependent.Returns:elink.
334.br
335:link reftype=hd res=2034 dependent.Remarks:elink.
336.*.br
337.*:link reftype=hd res=2025.Parameters:elink.
338.*.br
339.*:link reftype=hd res=416 dependent.Example:elink.
340
341:h2 res=2031
342x=30%
343width=70%
344hide
345group=2
346.winObjectFromPRec - Syntax
347:xmp.
348/* This function returns the object pointer
349 from a container record. */
350
351pRec /* Pointer to a WPS container record */
352:p.
353pObject=MFldrCallWinFunc("winObjectFromPRec",
354 pRec)
355
356:exmp.
357
358
359:h2 res=2033
360x=30%
361width=70% height=35%
362group=3
363hide
364.winObjectFromPRec - Return value
365:p.
366:hp2.ptrRec:ehp2. numeric
367:p.
368Pointer to an object.
369
370
371:h2 res=2034
372x=30%
373width=70%
374hide
375group=2
376.winObjectFromPRec - Remarks
377:p.
378The record pointer must be queried from a WPS container that means a container
379created by a WPS object and filled with WPS objects.
380
381
Note: See TracBrowser for help on using the repository browser.