Page 2 of 2

Re: ActivePage

Posted: Fri May 08, 2015 11:24 pm
by airsoftsoftwair
This is fixed now. "First" will no longer be returned but numeric indices only.

Re: ActivePage

Posted: Sun May 10, 2015 2:48 pm
by bitRocky
lazi wrote:
You simply use it like this:
mui.Set("register", "activepage", "Next")
Thanks for your answer, but as you can see in my previous post I am using mui.get, not mui.set. I wanted to read which register panel the user selected last time.
Ok, but in your first post you said you need a "Next", "Prev" and "Reset to 0" button, and for this you don't need to get the active page, if you use the special values with mui.Set().

Re: ActivePage

Posted: Sun May 10, 2015 10:47 pm
by lazi
Ok, but in your first post you said you need a "Next", "Prev" and "Reset to 0" button,
Ok. I know what made the misunderstanding :)
The first post is not mine, and it is about an other ActivePage related problem. I did not wanted to start another thread for another problem about ActivePage, so posted my question to this thread. My first post is this: http://forums.hollywood-mal.com/viewtop ... =665#p5244

Re: ActivePage

Posted: Mon Apr 18, 2016 9:56 am
by lazi
airsoftsoftwair wrote:This is fixed now. "First" will no longer be returned but numeric indices only.
There is a similar problem with mui.get ( <id>, "Active" ). There is an "off" return value beside the numeric entry values.

Re: ActivePage

Posted: Thu Apr 21, 2016 4:45 pm
by airsoftsoftwair
Yes, but that behaviour is reasonable IMHO because in case there is no active entry returning a numeric index doesn't make sense. One could return something like -1 of course but since there already is the special value "Off" I think it's more consistent to just re-use this so there is consistency between the set and get functions.