Dear netters, I have a question and hope to get your help.
Thank you so much.

I am using XmFileSelectionBox widget. How can i restrict moving upper
then directory diffined by XmNdirectory?

Thanks

10-04-2007, 08:40 AM

unix

Re: XmFileSelectionBox change dir

Olga Dilbilina wrote:[color=blue]
> Dear netters, I have a question and hope to get your help.
> Thank you so much.
>
> I am using XmFileSelectionBox widget. How can i restrict moving upper
> then directory diffined by XmNdirectory?
>
> Thanks[/color]

I think that a good solution would be to set XmNdirSearchProc and have
it set XmNdirectoryValid to False if ".." is in XmNdirectory.
Check out XtGetValues manpage. This would get all the values of the
FileSB into an arg/numarg array. Use a for loop (numarg as counter) that
sets a scratch XmString to the arg[numarg] in which arg == XmNdirectory.
YMMV