[BLACKBOX] Pre-loading "Open File" dialog box
----boundary-LibPST-iamunique-2004755460_-_-
Content-type: text/plain
Hello Listers,
At your suggestion I have read Hanspeter Mössenböck's book Object-Oriented Programming in Oberon-2. I also read Stan Warford's book Computing Fundamentals: The Theory and Practice of Software Design with BlackBox Component Builder, which I found especially helpful because it explains some of the operational quirks of BlackBox Component Builder which are not covered in the documentation, at least not that I could find.
Now I have a more mundane question. Can anyone suggest a way using BlackBox to "pre-load" a call to an "Open File" dialog box in Windows XP, such that the dialog box opens up already in the desired directory (folder), and shows only the desired file type, i.e. with "all files" in the "Files of Type" box and "*.xxx" in the "File Name" text box, so that all and only the files with ".xxx" extension appear? Obviously there are Windows API calls to do this -- can anyone suggest how to access these from inside BlackBox? I am writing a program for use by unsophisticated users, and the simpler I can make it, the better. I have tried the "Open File" dialog box in BlackBox, which works fine except for the two above desired features. The "PathtoFileSpec" function in ObxAscii may work fine in Unix or Linux but does not appear to be compatible with Windows. Thanks for any help.
Steve Troy
---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy
----boundary-LibPST-iamunique-2004755460_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbWh0bWwxIFxkZWZmMHtcZm9udHRibA0Ke1xmMFxm
c3dpc3NcZmNoYXJzZXQwIEFyaWFsO30NCntcZjFcZm1vZGVybiBDb3VyaWVyIE5ldzt9DQp7XGYy
XGZuaWxcZmNoYXJzZXQyIFN5bWJvbDt9DQp7XGYzXGZtb2Rlcm5cZmNoYXJzZXQwIENvdXJpZXIg
TmV3O319DQp7XGNvbG9ydGJsXHJlZDBcZ3JlZW4wXGJsdWUwO1xyZWQwXGdyZWVuMFxibHVlMjU1
O30NClx1YzFccGFyZFxwbGFpblxkZWZ0YWIzNjAgXGYwXGZzMjQgDQp7XCpcaHRtbHRhZzE5IDxo
dG1sPn0NCntcKl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