Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: Request Directory
Pages: [1] Print
Author Topic: Request Directory  (Read 798 times)
Edoc
Newbie
*
Offline Offline

Posts: 14


View Profile
Request Directory
« on: March 10, 2004, 08:12:47 AM »

On Windows, request-file pops-up the Windows Open File dialog. This is a nice feature, however, request-file does not let a user select only a directory.

I have a rebol utility where I'd like the user to select an existing directory or create a new one. Any suggestions?  
Logged
Ashley
Newbie
*
Offline Offline

Posts: 37


View Profile
Request Directory
« Reply #1 on: March 10, 2004, 05:30:35 PM »

Have you tried request-dir from the script library?
Logged
CarlRead
Full Member
***
Offline Offline

Posts: 105


View Profile
Request Directory
« Reply #2 on: March 11, 2004, 02:53:20 AM »

The Windows requester (as apposed to the REBOL one) was only added with View 1.2.5 (I think), and so is only in the beta versions.

As the other poster said, you could take a look at request-dir, (which is a version of View' original one if my memory is correct), or you could perhaps write your own that does just what you want and no more.  Is it just directories you want to select, or files as well?
Logged

- Carl Read
Edoc
Newbie
*
Offline Offline

Posts: 14


View Profile
Request Directory
« Reply #3 on: March 14, 2004, 09:58:21 AM »

Although the native Win32 File Open dialog is not cross-platform (obviously), it is a tremendous help to those of us looking to build user-friendly REBOL apps on the Windows platform.

Thanks for your suggestions. I think the best thing would be for RT to enable this through the Windows requester, rather than using a native dialog for one type of file operation and a non-native dialog for similar tasks.

I know they've got a lot on their plate now, so maybe they can add this feature at some point in the future. I'm pretty anxious to see the new VID.
Logged
Gregg
Newbie
*
Offline Offline

Posts: 26


View Profile WWW
Request Directory
« Reply #4 on: March 18, 2004, 11:52:57 AM »

Historically, the Windows file common dialog hasn't allowed you to select a directory, just files. That's why, in most apps, directory requestors look different. If it looks like the common dialog, that's only because someone went to a *lot* of trouble to make it look and act similar.

I think REBOL needs to have an enhanced set of native  common dialogs. What we have today is workable, but they need to be much better IMO. e.g. the color dialog should have slots for custom/predefined colors, etc.
Logged
Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: Request Directory
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 30, 2008, 06:43:44 PM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2243 Posts in 587 Topics by 2012 Members
Latest Member: Rsfezgpe

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc