1. Select & Create folders dialog

Bom dia para todos.
Goog morning for all.

Many thanks to Derek reply, about my last questions.

Please, now I need a new help.

The line below, shows a box dialog to choose any folder, 

 folders = selectDirectory("Get a Dir", {BIF_USENEWUI,BIF_VALIDATE}, 
            routine_id("callback"), 0)

That's o.k. 
I need a dialog box like that, but also has a choise to 
create a new folder.

Exist a DIALOG FLAGS to use with the selectDirectory() to 
create a new folder too ?

How I do it?


Thanks again.


Sérgio Gelli.

new topic     » topic index » view message » categorize

2. Re: Select & Create folders dialog

Sergio Gelli wrote:
> 
> Bom dia para todos.
> Goog morning for all.
> 
> Many thanks to Derek reply, about my last questions.
> 
> Please, now I need a new help.
> 
> The line below, shows a box dialog to choose any folder, 
> 
>  folders = selectDirectory("Get a Dir", {BIF_USENEWUI,BIF_VALIDATE}, 
>             routine_id("callback"), 0)
> 
> That's o.k. 
> I need a dialog box like that, but also has a choise to 
> create a new folder.
> 
> Exist a DIALOG FLAGS to use with the selectDirectory() to 
> create a new folder too ?
> 
> How I do it?
> 
> 
> Thanks again.
> 
> 
> Sérgio Gelli.

Yes Sérgio,

there is BIF_USENEWUI:

TargetDir = ( selectDirectory( "Select a local Folder\n",
    {BIF_BROWSEINCLUDEURLS, BIF_USENEWUI, BIF_VALIDATE}, routine_id( "callback"), 0))

antonio

new topic     » goto parent     » topic index » view message » categorize

3. Re: Select & Create folders dialog

Antonio Alessi wrote:
> 
> Sergio Gelli wrote:
> > Exist a DIALOG FLAGS to use with the selectDirectory() to 
> > create a new folder too ?
> > Sérgio Gelli.
> 
> Yes Sérgio,
> 
> there is BIF_USENEWUI:
> 
>     TargetDir = ( selectDirectory( "Select a local Folder\n",
>     {BIF_BROWSEINCLUDEURLS,
> BIF_USENEWUI, BIF_VALIDATE}, routine_id( "callback"), 0))
> 
> antonio

Thanks Antonio, your instruction works fine, I am grateful.

I try find this FLAGS in WIN32LIB.EW docs and anothers like this
but I failed, don't found nothing.

Where I can find intructions about that and others?

Sérgio Gelli - Brasil

new topic     » goto parent     » topic index » view message » categorize

4. Re: Select & Create folders dialog

Sergio Gelli wrote:
> 
> Antonio Alessi wrote:
> > 
> > Sergio Gelli wrote:
> > > Exist a DIALOG FLAGS to use with the selectDirectory() to 
> > > create a new folder too ?
> > > Sérgio Gelli.
> > 
> > Yes Sérgio,
> > 
> > there is BIF_USENEWUI:
> > 
> >     TargetDir = ( selectDirectory( "Select a local Folder\n",
> >     {BIF_BROWSEINCLUDEURLS,
> > BIF_USENEWUI, BIF_VALIDATE}, routine_id( "callback"), 0))
> > 
> > antonio
> 
> Thanks Antonio, your instruction works fine, I am grateful.
> 
> I try find this FLAGS in WIN32LIB.EW docs and anothers like this
> but I failed, don't found nothing.
> 
> Where I can find intructions about that and others?
> 
> Sérgio Gelli - Brasil

I cannot help you much in that, I don't know Windows programming details; 
I was greatly helped in discovering the Euphoria power by this forum 
and all the RDS contrib. solutions; and was so busy in developing 
a big application that I could never find out time to deepen theories 
and rules from M$'s sources. Hope someone else can address you..
I can look for win32.hlp on the net and download it to start 
with a basic reference.

However the BIF_USENEWUI constant exists into the winfile.ew included file.

antonio

new topic     » goto parent     » topic index » view message » categorize

5. Re: Select & Create folders dialog

Sergio Gelli wrote:
> 
> Antonio Alessi wrote:
> > 
> > Sergio Gelli wrote:
> > > Exist a DIALOG FLAGS to use with the selectDirectory() to 
> > > create a new folder too ?
> > > Sérgio Gelli.
> > 
> > Yes Sérgio,
> > 
> > there is BIF_USENEWUI:
> > 
> >     TargetDir = ( selectDirectory( "Select a local Folder\n",
> >     {BIF_BROWSEINCLUDEURLS,
> > BIF_USENEWUI, BIF_VALIDATE}, routine_id( "callback"), 0))
> > 
> > antonio
> 
> Thanks Antonio, your instruction works fine, I am grateful.
> 
> I try find this FLAGS in WIN32LIB.EW docs and anothers like this
> but I failed, don't found nothing.
> 
> Where I can find intructions about that and others?
> 
> Sérgio Gelli - Brasil

Hello Sergio,

   Why can't you use selectDirecrt() to select a directory 
 and
 createDirectry() to create a diectory.
You can call one right after the other. There is no need to mix them       
 together.

As far as the flag I really don't know them all. I believed anything in all
 capital letter like BIF_VALIDATE is an attribute and must be looked up for each
 control you are using them in.


Don Cole

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu