Modify

#2723 closed Feature Request (No Bug)

FileConstants.au3 and FileSelectFolder.txt

Reported by: mLipok Owned by:
Milestone: Component: Documentation
Version: Severity: None
Keywords: Cc:

Description

please add

; Indicates FileSelectFolder options
Global Const $FSF_SCHOWCREATEBUTTON = 1 ; Show Create Folder Button
Global Const $FSF_NEWDIALOGSTYLE = 2 ; Use New Dialog Style
Global Const $FSF_SHOWEDITCONTROL = 4 ; Show Edit Control

to FileConstants.au3

and I attach modified FileSelectFolder.txt

Attachments (1)

FileSelectFolder.txt (1.9 KB ) - added by mLipok on May 17, 2014 at 7:16:31 AM.

Download all attachments as: .zip

Change History (8)

comment:1 by Melba23, on May 17, 2014 at 12:43:31 PM

I disagree with the need for yet another set of named constants - the flags are only valid in XP and are thus deprecated for all other OSes, which probably means the majority of AutoIt users.

M23

comment:2 by mLipok, on May 17, 2014 at 5:44:45 PM

Or I do not understand your speech.
Or I do not fully agree with you.

Check out my REPRO:

$sFolderWithPDFFiles = FileSelectFolder('NO $FSF_SCHOWCREATEBUTTON', "")
$sFolderWithPDFFiles = FileSelectFolder('IS $FSF_SCHOWCREATEBUTTON', "", 1)

$sFolderWithPDFFiles = FileSelectFolder('NO $FSF_NEWDIALOGSTYLE', "")
$sFolderWithPDFFiles = FileSelectFolder('IS $FSF_NEWDIALOGSTYLE', "", 2)

$sFolderWithPDFFiles = FileSelectFolder('NO $FSF_SHOWEDITCONTROL', "")
$sFolderWithPDFFiles = FileSelectFolder('IS $FSF_SHOWEDITCONTROL', "", 4)

On my Windows 7 Pro x64 script above clearly shows that changes as a result of the use of the Flag.
By which at the moment I think they are not deprecated, unless I missed something and actually do not understand something.

Please request further discussion.

mLipok

comment:3 by mLipok, on May 17, 2014 at 5:51:34 PM

I ask, otherwise
Is it possible to obtain a directory selection dialog with the possibility to enter/type a path in a different way than using $FSF_SHOWCREATEBUTTON?

This function is useful to me.

btw. there is typo $FSF_SHOWCREATEBUTTON not $FSF_SCHOWCREATEBUTTON

comment:4 by guinness, on May 18, 2014 at 9:38:48 AM

They work on Windows 8.1 too.

comment:5 by Matt Diesel, on May 18, 2014 at 2:48:15 PM

In the beta versions of AutoIt, the new select folder dialog is used instead of the old one, which ignores these flags. See #2481.

The helpfile already references this:

The new vista+ dialog style is used if possible, regardless of the Use New Dialog Style flag. With the vista dialog style the edit control and create folder buttons are always shown, ignoring the flags parameter, and the dialog text parameter sets the title of the window.

comment:6 by mLipok, on May 18, 2014 at 3:22:57 PM

ok
All is clear.
Ticket can be closed.

comment:7 by Jpm, on May 19, 2014 at 4:43:52 PM

Resolution: No Bug
Status: newclosed

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.