I’m doing this:
const char* dir = dirname(dirwork);
PtSetResource(ABW_file_open_dlg_fileselector, Pt_ARG_FS_ROOT_DIR, dir, 0);
and it seems to have no effect. The file selector still starts from “/”
next time.
“dir” is valid; I’ve printed it.
John Nagle
John Nagle wrote:
I’m doing this:
const char* dir = dirname(dirwork);
PtSetResource(ABW_file_open_dlg_fileselector, Pt_ARG_FS_ROOT_DIR, dir,
0);
and it seems to have no effect. The file selector still starts from “/”
next time.
“dir” is valid; I’ve printed it.
John Nagle
In my QNX 6.21 application, I use either char *dir (no const) or char
dir[128] and it seems to work. Changes that the user makes to the
working directory are saved in a global char array, and these are
applied in an initialization routine every time the user calls up the
dialog. When the user dismisses the dialog, it (and the PtFileSel widget
it contains) are destroyed.