The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Sort order in TOP of fdlog multifile dialog
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

jdf726

78 Posts

Posted - 03/30/2011 :  08:45:38 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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


Penn

China
644 Posts

Posted - 03/30/2011 :  10:10:39 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

jdf726

78 Posts

Posted - 03/31/2011 :  10:37:54 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Go to Top of Page

jdf726

78 Posts

Posted - 03/31/2011 :  10:39:11 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Here is the image.



JF
Go to Top of Page

Penn

China
644 Posts

Posted - 03/31/2011 :  10:36:28 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000