Jump to content

Recommended Posts

Posted (edited)

How the **** do I get this browse for folder dialog style (image 1) ?

SelectFolderDg.jpg

I used this, with all flag combinations (1, 2, 4) - but I always get the second style (image 2).

Local $fold01 = FileSelectFolder("Please select folder", '')

open-dialog.jpg

I'm using Windows 7 x64 and AutoIt 3.3.14.2.

I think I solved it once, even kept the source code on some old DVD, but I cannot find it anymore.

 

Edited by queensoft
  • Moderators
Posted

queensoft,

The Help file suggests that the flags are only useful if you run XP and that later OS versions will use the full dialog regardless:

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.

If you want something simpler then the full Windows "dog and pony show" that MS now force you to use, you might like to take a look at my ChooseFileFolder UDF - the link is in my sig.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Posted (edited)

Thank you for the quick reply, downloaded the ZIP and testing now.

Also found another solution by myself, seems to be working: http://www.autoitx.com/archiver/tid-4897.html

Hmmm, Melba23, seems the script is not working.

Same result if I use flag 0 (zero) "Entire folder tree and all matching files within folders - only files can be selected"

 

Image1.jpg

Found solution: did not add $sRet = _CFF_RegMsg()

Is that the problem, is that really necessary ?

Edited by queensoft

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...