Moderators Melba23 Posted January 26, 2015 Author Moderators Posted January 26, 2015 Deye,Glad you like it. when expanding a root while is checked then all children are also checkeddoing it the other way, collapsing and unchecking doesn't clear what was checked under that root when was expandedThe logic works like this: - When you expand a branch, all the children are automatically set to the same checked state as the expanded item. Collapsing a branch has no effect on the currently set checked state of the children.- Checking and clearing a parent has no effect on the checked state of the children UNLESS you have the Ctrl key pressed in which case all children will be set to the state of the parent.I think that is a good compromise - you may well want to select the parent and only some of the children so I do not want to make it a fully automatic selection as in the GUITreeViewEx UDF. I will today look into how to return just the deepest levels - and see if I can manage to make it an option. M23 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Moderators Melba23 Posted January 26, 2015 Author Moderators Posted January 26, 2015 (edited) Deye, And here you have the latest Beta code - with a couple of examples to show it working in both _Choose & _Embed modes: <See new Beta code below> Let me know what you think. M23 Edited September 27, 2017 by Melba23 Removed Beta code 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Deye Posted January 27, 2015 Posted January 27, 2015 (edited) M23 with "+ 512" the returns seems to work just fine except for the "2" switch to show folders only. just for an idea: can there be added something for it to accept an $array that includes a list of paths and have some paths prechecked.. well done so far thanks again! Edited January 27, 2015 by Deye
Moderators Melba23 Posted January 27, 2015 Author Moderators Posted January 27, 2015 (edited) Deye,Found the problem - try this amended version:<snip>After much thought I have removed the "if parent checked then set children checked on expansion" functionality - it became very difficult to implement in the _CFF_Embed function and I would like to keep the two as closely aligned as possible. The "pre-checking" you asked for might be bit difficult as the folder tree itself does not exist until expanded for the first time so initially there is nothing much to check. I will have a think about how it might be done, but I fear it might fall into the "TFD" bracket. M23 Edited January 27, 2015 by Melba23 Removed Beta code 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Deye Posted January 27, 2015 Posted January 27, 2015 Melba23, thanks plenty for the new additions in this UDF corresponding to my requests I'm very satisfied with how it runs now now I can continue what I was trying to get done. Deye
Moderators Melba23 Posted January 27, 2015 Author Moderators Posted January 27, 2015 (edited) Deye,Glad you like the changes. The "prechecking" functionality was not too hard to do after all - here is a new Beta for you to test:<snip>And here is an example script to show how it might be used:#include "ChooseFileFolder_Mod_PreCheck.au3" ; Register handlers _CFF_RegMsg() ; Create the list - folders can be ended with a backslash or not as the UDF will add one if required Local $aPreCheck_List[3] = ["M:\Program\", "M:\Program\Au3 Scripts\ChooseFileFolder\Test.au3", "N:\Digital Pictures\London Oct 2013"] ; Folder\ File Folder ; Pass the list to the UDF _CFF_SetPreCheck($aPreCheck_List) ; Run the dialog Local $sRet = _CFF_Choose("Checkboxes", 300, 500, -1, -1, "", Default, 0 + 16, -1) ; See the return ConsoleWrite($sRet & @CRLF)You need to use the new function to pass the required paths to the UDF, which checks them to make sure that they are valid. Then as the branches are expanded, any matching paths are checked. If the tree has not been sufficiently expanded to actually create the items, they are automatically added to the returned list - if you prechecked them then you presumably want them returned! M23Edit: Only _CFF_Choose will precheck at the moment - I will look at _CFF_Embed this evening. Edited January 28, 2015 by Melba23 Beta code removed 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Deye Posted January 27, 2015 Posted January 27, 2015 Melba23, excellent stuff there is on more thing! can all the prechecks be loaded with dummy checks to all parent levels simply to help the walk through as an indication that there are files checked deeper inside a root it will work well with the "+ 512" switch. TIA
Moderators Melba23 Posted January 27, 2015 Author Moderators Posted January 27, 2015 Deye, can all the prechecks be loaded with dummy checks to all parent levelsSome people are never satisfied! I will see how complicated it gets to incorporate that - at the moment you can always do it manually. M23 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Deye Posted January 27, 2015 Posted January 27, 2015 (edited) I had some files that didn't make it through. present in $aPreCheck_List array for instance: New folder (3) New folder (4) yet in the return they seem to be present Edited January 27, 2015 by Deye
Moderators Melba23 Posted January 27, 2015 Author Moderators Posted January 27, 2015 Deye,Give me some information to work with. Are those files or (as their name suggests) folders? What is their full path? M23P.S. And the prechecked parents functionality looks promising. 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Deye Posted January 27, 2015 Posted January 27, 2015 (edited) M23, a file path : "C:New folder (2)" "C:boot(1)" P.S. And the prechecked parents functionality looks promising. try and give them some shaded color if you can, or just some bkground color Edited January 27, 2015 by Deye
Moderators Melba23 Posted January 27, 2015 Author Moderators Posted January 27, 2015 Deye,When I add those folders to my M: drive I get them prechecked and returned:#include "ChooseFileFolder_Mod_PreCheck.au3" ; Register handlers _CFF_RegMsg() ; Create the list - folders can be ended with a backslash or not as the UDF will add one if required Local $aPreCheck_List[2] = ["M:\boot(1)", "M:\New folder (2)"] ; Pass the list to the UDF _CFF_SetPreCheck($aPreCheck_List) Local $sRet = _CFF_Choose("Checkboxes", 300, 500, -1, -1, "", Default, 0 + 16 + 512, -1) ConsoleWrite($sRet & @CRLF)What exactly does not happen for you? And no chance for the colour. M23 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Deye Posted January 27, 2015 Posted January 27, 2015 (edited) I've tested again on other drives folders with "folder(?)" don't get prechecked though in the return they are still there I even used ctrl to deselect everything still had them returned so its just a display issue I'm getting here with folders named this way. Edited January 27, 2015 by Deye
Moderators Melba23 Posted January 27, 2015 Author Moderators Posted January 27, 2015 (edited) Deye,I even used ctrl to deselect everythingstill have them returnedI see what you mean - looking into it now. >M23 Edited January 27, 2015 by Melba23 Fixed BB tags 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Deye Posted January 27, 2015 Posted January 27, 2015 (edited) Deye, I see what you mean - looking into it now. > M23 the problem for me, was just with those few folders with that naming "folder(?)" not getting prechecked , not for you as you stated above. found no problems with files with that same naming! other files and folders upon deselection where not in the return which is the expected behavior Edited January 27, 2015 by Deye
Moderators Melba23 Posted January 27, 2015 Author Moderators Posted January 27, 2015 Deye,I have found the problem - now to fix it. But that will be for tomorrow. M23 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Moderators Melba23 Posted January 28, 2015 Author Moderators Posted January 28, 2015 (edited) Deye,Try this version - it should fix the problem: <snip>M23 Edited January 31, 2015 by Melba23 Removed Beta code 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Deye Posted January 29, 2015 Posted January 29, 2015 M23, didn't have time to test yesterday as I was out for the day.. got back earlier today.. seems to be working great now. thanks for the fixes and all new features and implementations Deye
Moderators Melba23 Posted January 29, 2015 Author Moderators Posted January 29, 2015 Deye,My pleasure. I will release a new version sometime this weekend once I have worked out how to describe to new users all the new functionalities I have added for you. M23 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Deye Posted January 30, 2015 Posted January 30, 2015 M23, before you make this release I have found one more issue using for instance: Local $aPreCheck_List[3] = ["C:\Program Files (x86)\Adobe\Reader 11.0","C:\Program Files (x86)\7-Zip","C:\Program Files (x86)\Google"] this adds a precheck to "C:Program Files" causing a miss precheck for one of the needed above in "C:Program Files (x86)" path and break "+ 512" Deye
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now