Posts: 501
Joined: Nov 2007
Reputation:
3
Looking at the built-in functions, I see there are commands to set the container's view mode. So I can make my own control to do this, rather than using the sort of built-in one. Which is what I want. I also wanted to make my own control to change the sorting, but there doesn't seem to be any functions to set the sorting. At least not that I see listed. Is this possible?
Posts: 1,881
Joined: Aug 2007
Reputation:
1
2008-01-31, 20:17
(This post was last modified: 2011-01-30, 09:48 by skunkm0nkee.)
I don't think it exists at the moment but some sort of set sort method would be a great addition.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Not possible atm - a patch would be most welcome - just follow the set view stuff (CUtil::ExecBuiltIn()) and CGUIMediaWindow::OnMessage() IIRC)
Cheers,
Jonathan
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Note that this one would be much trickier to get right.
It'd be easy to have next and previous sort order, and pretty easy to grab the current sort order as an infolabel.
The tricky bit would be knowing what the sort options should be populated with, as it changes based on user settings and which directory you are browsing (some folders allow more sort options than others).
Cheers,
Jonathan
Posts: 501
Joined: Nov 2007
Reputation:
3
I've submitted the patch for next/previous so hopefully at least that will be in there.
I probably won't get a chance to do the explicit set until my next weekend though which is Tuesday. Just got done my weekend.
Posts: 501
Joined: Nov 2007
Reputation:
3
2008-02-21, 03:10
(This post was last modified: 2008-02-21, 03:25 by agathorn.)
Ok just an update on this. Still having some issues with setting explicit sorts. The infolabel is working though, so I just have this last issue to hunt down.
EDIT: For some frickin annoying reason, the message just isn't being passed on and for the life of me I can't figure out why. It is driving me insane!