TMS FMX UI Pack / TTMSFMXDirectoryTreeView problem

Screen shot #1


Screen shot #2


I used the latest version of FMX UI Pack on the macBook Air (10.13.6).

I have compiled the TMS TreeView demo and I have uploaded it to my web page:
http://www.i3dconverter.com/media/Demo.zip

Did you change any system settings?

We are still not able to reproduce this issue here so it's unclear what exactly is going wrong.

I did not change anything.


I have posted a screenshot on 17 Feb 2017 at 1:51pm on the following topic:
https://www.tmssoftware.com/site/forum/forum_posts.asp?TID=7455&KW=&title=tmsfmxdirectorytreeview-problem

It sorted the names much more better then the actual version:
http://i3dconverter.com/media/Screen_MAC_TMSDirectoryTreeView.png

Again, with the latest version (1.0.1.3) we are not able to reproduce this, with the default settings. Please send us a sample that is able to reproduce this issue we can investigate here.

Did you try to run the (non modified) TMS TreeView demo on your system that I have compiled and uploaded to my web page?

We get an error here that the demo cannot be openened. It's unclear exactly what needs to be done to get this working?

Double click on the downloaded .zip file and drag and drop the demo app from the Downloads folder to the Applications folder using Mac's Finder.

Run the Demo app.

Run the Demo app from the Applications.   

To be able to debug an issue, we need to be able to compile from the IDE. With just running a binary application, there is very little we can do.

Bruno,


I have used (compiled) the official TMS FMX UI Pack Demos\TreeView demo without any modifications.

Hi,


We have tested this here with the demo and still could not reproduce the issue. We suspect that the sort order is based on system settings. To make sure the files are in alphabetical order you can use the treeview sorting method as an alternative:

procedure TForm96.TMSFMXDirectoryTreeView1AfterExpandNode(Sender: TObject;
  ANode: TTMSFMXTreeViewVirtualNode);
begin
  AutoSizeColumns;
  TMSFMXDirectoryTreeView1.Sort(0, True, True, nsmAscending);
end;

Hello,


I have installed the 10.14 Mojave on my Mac with the default settings and it worked as the previous OS worked also.

After it I added the suggested code to my program:
TMSFMXDirectoryTreeView.Sort(0, True, True, nsmAscending);
and the result was in abc order.

I have tried it on Win32/Win64/macOS/Linux 64 and I think it does not use the SortOrder parameter:

The result was the same in the following cases:
TMSFMXDirectoryTreeView.SortOrder:=TTMSFMXDirectoryTreeViewSortOrder.tvsoDirectoriesFirst;
TMSFMXDirectoryTreeView.SortOrder:=TTMSFMXDirectoryTreeViewSortOrder.tvsoFilesFirst;
TMSFMXDirectoryTreeView.SortOrder:=TTMSFMXDirectoryTreeViewSortOrder.tvsoNone;

Hi,


the SortOrder is being used correctly. Again, we cannot see an issue here. Are you able to test this on another machine?

Hello,


As I wrote I have tested it on Windows PC also.

http://www.i3dconverter.com/media/Win7_DirectoryTreeView_20181002.png

I have uploaded the demo source code and the executable also:
http://www.i3dconverter.com/media/Directory_source_with_win32_executable.zip

Hello,


As I wrote I have tested it on Windows PC also.
http://www.i3dconverter.com/media/Win7_DirectoryTreeView_20181002.png


I have uploaded the demo source code and the executable also:
http://www.i3dconverter.com/media/Directory_source_with_win32_executable.zip

I have used the   TMSFMXDirectoryTreeView1.SortOrder:=TTMSFMXDirectoryTreeViewSortOrder.tvsoDirectoriesFirst; and the component completely ignore it as you can see on the picture.

Hi,


We have tested this here and didn't see an issue. Which exact version are you using of the directory treeview component? The version we are using is 1.0.1.3. After setting the SortOrder to tvsoDirectoriesFirst we get the following screenshot which is the correct order.


I am using the v3.6.8.5 TMS FMX UI Pack

FMX.TMSDirectoryTreeView.pas
// v1.0.1.3 : Fixed: Issue with fetching correct drive info in Windows 64 bit operating system


Did you try the Win32 executable (that I have complied) on your Windows?

http://www.i3dconverter.com/media/Directory_source_with_win32_executable.zip