PxPlus User Forum
Main Board => Discussions => Programming => Topic started by: Mike Hatfield on December 14, 2018, 03:33:12 AM
-
I'm selecting a file from a directory:
PDIR$=""
PROOT$="\HIT\SCANDATA\"
GET_FILE_BOX PDIR$,PROOT$,"Choose Order File","Text Files|order*.TXT,"
This is fine except I want to:
a - stop the user going back up the directory tree
b - suppress the 'new folder' button
how do I do this?
Thanks
-
Mike,
The only thing that you probably can do is check id proot$ is in the pdir$ if not display a message and send it back to the GET_FILE_BOX
-
Based on feedback we received at the last DireXions, for PxPlus 2019 we added a new option to suppress the New Folder button. We can look at potentially doing the same for going back up the directory tree.
-
We had similar considerations. Our implementation included adding a global variable (%No_Up_Dir%) that we tested to enable/disable the tree navigation controls.
Since GET_FILE_BOX is actually in PxPlus code, you can modify it to your needs. Just beware any changes that are implemented in upgrades.
Location: <pxplus>/lib/_plus/winutl/get_file_box
-
Len,
I don't see that option in the online doco for GET_FILE_BOX (only for the DIRECTORY option)
Thanks
-
PxPlus 2019 hasn't been released yet.