Modify

Opened 12 years ago

Closed 12 years ago

#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 12 years ago.

Download all attachments as: .zip

Change History (8)

by mLipok, 12 years ago

Attachment: FileSelectFolder.txt added

comment:1 by Melba23, 12 years ago

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, 12 years ago

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, 12 years ago

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, 12 years ago

They work on Windows 8.1 too.

comment:5 by Matt Diesel, 12 years ago

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, 12 years ago

ok
All is clear.
Ticket can be closed.

comment:7 by J-Paul Mesnage, 12 years ago

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.