PxPlus User Forum

Main Board => Discussions => Programming => Topic started by: Mike Hatfield on December 14, 2018, 03:33:12 AM

Title: GET_FILE_BOX
Post 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
Title: Re: GET_FILE_BOX
Post by: harryv on December 14, 2018, 08:12:32 AM
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
Title: Re: GET_FILE_BOX
Post by: Len Vassos on December 14, 2018, 08:52:08 AM
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.
Title: Re: GET_FILE_BOX
Post by: James Zukowski on December 14, 2018, 10:17:07 AM
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
Title: Re: GET_FILE_BOX
Post by: Mike Hatfield on December 14, 2018, 04:02:29 PM
Len,

I don't see that option in the online doco for GET_FILE_BOX (only for the DIRECTORY option)
Thanks
Title: Re: GET_FILE_BOX
Post by: James Zukowski on December 14, 2018, 04:29:46 PM
PxPlus 2019 hasn't been released yet.