|
Pages: [1]
|
 |
|
Author
|
Topic: Path name requester (Read 1626 times)
|
|
Gord
|
Is there a command that allows the user to pick a directory?
I was modifying an existing rebol script and wanted to add a requester for a directory/folder for storing images and can't seem to put my finger on a command that would be similar to 'request-file' but allow the user to select just a directory/folder. The 'request-file/path' options still insists that you pick a file and won't return until you do. If your directory is empty where you want to store the images then you can't return at all because there is no file to click on.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Gord
|
Thanks
Where did you find this? I don't see it mentioned in the Rebol Dictionary nor the Rebol user's guide!
|
|
|
|
|
Logged
|
|
|
|
|
Gabriele
|
>> help "request" Found these words: local-request-file native! Creates an OS-specific file requester request function! Requests an answer to a simple question. request-color function! Requests a color value. request-date function! Requests a date. request-dir function! Requests a directory using a popup list. request-download function! Request a file download from the net. Show progres... request-file function! Requests a file using a popup list of files and di... request-list function! Requests a selection from a list. request-pass function! Requests a username and password. request-text function! Requests a text string be entered.
|
|
|
|
|
Logged
|
|
|
|
|
Brock
|
I believe this is a new addtion to Rebol with 1.3.2, contributed by one of the Rebol Gurus. Notice the difference in style used in request-file and request-dir. Prior to request-file using the local-os dialogue, the look was much different than both of these. I wouldn't be surprised if the dialogues become more consistant with Rebol 3.
|
|
|
|
|
Logged
|
|
|
|
|
Gord
|
Thanks guys. I didn't think to look for help on a partial word match.
I noticed right away that request-dir uses the Rebol view interface and request-file uses what seems to be a OS compatible (at least for Windoze) interface. I've added a help string in the program to explain how to use the Rebol view directroy requester.
I've uploaded the program to the Library, (ngbg2.r). It is a considerable modification to the original "Foto Of The Day" program by Ian Munroe. Instead of just downloading one photo it will download all of them (just under 2000 high quality photos) along with the captions and credits, creates web pages for each photo so you can browse them forward and backward. Lots of fun. I now change my Windoze backdrop page everytime I reboot, (a couple times a month).
|
|
|
|
|
Logged
|
|
|
|
|
|
|
DideC
|
The request-dir actually in View 1.3.2 is from Carl himself. It is based on a code he release some years ago (where ? sorry, can't remember) Based on his code, here is a simple attempt at presenting the whole thing in a kind of treeview. As you posted ngbg2 in the Library, you could have found it there ;-) To try it, just copy/paste in the console do http://www.rebol.org/cgi-bin/cgiwrap/rebol/download-a-script.r?script-name=request-dir.r request-dirPS: I'm aware of the small visual bug between lines, It's due to the AGG engine and was not present in old View engine. If you want to correct it, change the line : links: [ [draw [pen 0.0.0 line 6x0 6x9 12x9]] [draw [pen 0.0.0 line 6x0 6x19 line 6x9 12x9]] ] by links: [ [draw [pen 0.0.0 line 6x-1 6x9 12x9]] [draw [pen 0.0.0 line 6x-1 6x19 line 6x9 12x9]] ]
|
|
|
|
|
Logged
|
|
|
|
|
|
Pages: [1]
|
|
|
 |
News: 01-09-08 Alpha version of REBOL 3 has been released!
2295 Posts in 593 Topics by 3754 Members
Latest Member: MPShetfoept
|