T O P I C R E V I E W |
jdf726 |
Posted - 03/30/2011 : 08:45:38 AM Origin Ver. 8.0891 Operating System: Windows XP
I am triggering a multifile dialog from Origin C (using GetFDLogBox() with the FDLOG_TYPE_MULTI_OPEN type) and then using this to select a range of files that are numbered with a hexadecimal number system (e.g. '*0CE1.dat' -'*0CF6.dat').
The top part of the file selection tool does not sort these correctly when they are ordered by name, the default order, so every time I load the files in I have to set the the folder view to 'details' and sort by modified date, then find the first and last file in the range.
Is there a way to set the default view to 'detail' and order the files by modified date?
I had a dig around in sys_utils.c and the multifile dialog uses the LabTalk object fdlog. I found that I can set the sorting in the lower part of the dialog by issuing labtalk configuration commands like
LT_execute("FDLog.multiOpen.sort=1;");
Which affects the ordering of the files once they are added to the selected list, but does not fix the problem with the upper panel. Interestingly, the 'sort by name' in the lower panel gets the hexadecimal ordering right (I wish it worked on the upper panel!).
I've looked at the rest of the fdlog configuration commands and can't find one that covers it. Can this be tinkered with somehow?
JF
|
4 L A T E S T R E P L I E S (Newest First) |
Penn |
Posted - 03/31/2011 : 10:36:28 PM Hi JF,
I can see what the problem is now. In the upper panel, Origin takes the order from Windows. We will consider to making the orders consistent for upper and lower panels. Thank you for reporting this.
Penn |
jdf726 |
Posted - 03/31/2011 : 10:39:11 AM Here is the image.

JF |
jdf726 |
Posted - 03/31/2011 : 10:37:54 AM Penn,
The issue is with the method of sorting of hexadecimal file names. The default order may be sorted 'by name', but this doesn't always work.
This is actually also true in XP generally unless you introduce the registry key described here
http://support.microsoft.com/kb/319827
which switches between 'correct' and 'incorrect' sorting ( = 1 gives you the answer I want in explorer).
I'm not sure if Origin takes its sorting from the Windows algorithm or not. In fact I am having problems reproducing the Origin problem every time. I took a screen capture just and it is wrong (image attached hopefully) but it wasn't earlier today. Maybe I need to be more careful to restart Origin after changing the registry key (you do need to reload explorer.exe for it to take effect).
JF
|
Penn |
Posted - 03/30/2011 : 10:10:39 PM Hi JF,
By default, the files shown in the upper panel should be sorted by name. You said "sort by name" in the lower panel got the right order you wanted. This may be a coincidence that the order sorted by modified date in upper panel met the one sorted by name in lower panel. Could you please post a picture here to show the upper panel and lower panel when you select files? And then we can look further into it.
Penn |