Dialog_Write_Image [message #37667] |
Fri, 09 January 2004 12:18 |
btt
Messages: 345 Registered: December 2000
|
Senior Member |
|
|
Hello All,
Just when I thought I had all my ducks in order...
I am having a challenging moment with the handy built-in
DIALOG_WRITE_IMAGE function.
Try something like the following sequence ...
IDL> img = bytscl(dist(100))
IDL> file = '/Users/Shared/data/test.tif'
IDL> ok = Dialog_Write_Image(img, file = file)
On my version of IDL, when the user chooses the 'go up one directory
level' button, the file name disappears from the "File Name" text
widget. This is not desirable from my point of view - since I really
want the user to use the name I have suggested (often a unique timestamp
or something similar.) I still want the user to have the flexibility
that comes with DIALOG_WRITE_IMAGE (different file types, etc.)
Any suggestions (short of rewriting DIALOG_WRITE_IMAGE) for getting
"File Name" to be stickier? I know that DIALOG_WRITE_IMAGE uses
CW_FileSel for the filename widget - but knowing that doesn't help me at
all.
Thanks,
Ben
IDL> print, !version
{ ppc darwin unix Mac OS X 6.0 Jun 27 2003 32 32}
|
|
|