Jump to content

Recommended Posts

Posted
22 hours ago, ioa747 said:

I haven't understood what exactly it does

Hey, thanks for the hint, I removed the additional assignation. This is just a State-Variable used internally (The __TreeListExplorer__IsViewUpdating and __TreeListExplorer__SetViewUpdating function are marked as "INTERNAL_USE_ONLY").
As an example: It is used to suppress treeview-item expansion events in the __TreeListExplorer__WinProc function from propagating when items are expanded internally by the UDF. This could cause looping effects or multiple loadings of items,... otherwise.

I fixed it locally, but as it is just a different number and has no code behaviour differences, it will just be pushed with the next update.

 

 

19 hours ago, WildByDesign said:

For what it's worth, I haven't noticed any consequences or issues with that uncommented line.

If you change line 231in your code to __TreeListExplorer_AddView($hTLESystem, $idTreeView, Default, True, "_clickCallback")
and then navigate to a folder in the TreeView and select some files there, you will see, that they will stay selected in the ListView.

The same will happen if you use __TreeListExplorer_OpenPath with a $sSelect somewhere in your application, e.g.:

__TreeListExplorer_OpenPath($hSystem, @DesktopDir, "tmp1.txt")
__TreeListExplorer_OpenPath($hSystem, @DesktopDir, "tmp2.txt")

The it will start selecting multiple files in the ListView instead of just the one from the last call.
(And maybe some other edge cases I did not think about...).
So, maybe you do not see it yet, but if something pops up during further development, it could be because of this, so be careful with that :)

 

I'am looking into the multiselect thing currently :)

Posted (edited)

Hey, @WildByDesign, I got around to adding the requested features.

- The UDF now allows for selection with ctrl/shift+left-click and to select everything with ctrl+a. If any shortcuts are missing and should be added, feel free to hit me up :)
- The 
__TreeListExplorer_AddView function has an additional parameter to allow for the removal of the ".." folder without disabling the navigation.
- It is now possible to use custom columns. Only the first column has to stay as the file/folder/drive-name. So feel free to add your own columns after that. To allow for setting these columns, another callback function was added to __TreeListExplorer_AddView: $sCallbackLVItem. This can be used to set the text for any sub items (I added this in the example so its easier to understand). When the callback function is provided, the default columns no longer replace existing other columns (only the first is added if missing).

Have fun with the new version :)

PS: __TreeListExplorer__GetSizeString is marked for internal use, but feel free to use it to calculate the string for byte sizes (e.g. Bytes/KB/MB/GB/TB/...) with e.g. __TreeListExplorer__GetSizeString(8912403)

Edited by Kanashius
Posted
11 minutes ago, Kanashius said:

Have fun with the new version :)

Apparently Christmas is TODAY! 😁

All of those new features... I am speechless. I will mess around with it right away and test it out. I will respond more later because I am still in shock at these new features.

Posted

I just noticed that the time (Date Created and Date Modified) returned from __TreeListExplorer__GetTimeString, and therefore likely from FileGetTime, is all exactly 1 hour before the times that show in File Explorer. This isn't specific to the latest 2.11.1 as it seems to be like that in previous releases as well. A quick test right now shows that FileGetTime is the culprit.

I assume this has something to do with changes in daylight savings time.

But I wonder, how does File Explorer obtain it's times for date created and modified?

Posted
3 hours ago, Kanashius said:

The UDF now allows for selection with ctrl/shift+left-click and to select everything with ctrl+a. If any shortcuts are missing and should be added, feel free to hit me up

Those all seem to be working great. The only issue that I'm having is when I use the mouse to drag and select a bunch of files and folders, it highlights the selected items and then clears all of them except for one. You can try the 2025-12-14 release of Files Au3 that I just uploaded to see what I mean. It has your latest 2.11.1 UDF release implemented.

This is fixed when I comment the following line (same as mentioned before):

;_GUICtrlListView_SetItemSelected($hView, $arSel[$j], False)

Although, as you mentioned, it would have consequences.

Do you know how we can allow multi-select by mouse click and drag without this issue?

Thank you :)

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
×
×
  • Create New...