[comp.sys.next] IB tricks?

dz@pumpkin.ucsb.edu (Daniel James Zerkle) (09/08/89)

I could use a little advice on a couple of features I want to add to my
IB program.

First off, I want to use an OpenPanel to select a DIRECTORY.  It is
normally set up to select FILES, which is not what I want.  Is there a
good way to do this?  Normally, while the browser is on a directory,
the OK button is disabled, although if you select a file, the direc-
tory is available to the program.

Second off, I want to be able to pop up a little panel whenever there
is an error, so that the error message will be displayed, and the
program will not continue until the user hits some button on the
panel.  What is the canononical way to do this?  I could possibly add a
panel with IB, customize it myself, change a text field, and manually
display it each time there is an error, but it seems like there should
be some system built in to do the job.  Anybody have any good ideas?
Better yet, anybody have any good code?

| Dan Zerkle home:(805) 968-4683 morning:961-2434 afternoon:687-0110  |
| dz@cornu.ucsb.edu dz%cornu@ucsbuxa.bitnet ...ucbvax!hub!cornu!dz    |
| Snailmail: 6681 Berkshire Terrace #5, Isla Vista, CA  93117         |
| Disclaimer: If it's wrong or stupid, pretend I didn't do it.        |

combs@sumex-aim.stanford.edu (Dave Combs) (09/09/89)

Dan,
For your second problem (displaying error messages), use the 0.9 function
NXAlert.
Dave

P.S. To anyone, a similar problem - Is there some generic function that
will allow me to put up a panel and take a line of input?  Does a basic
class exist that will do the job, or do I have to invent one, basically
equivalent to a Macintosh "dialog box"?