INTERACT FORUM

Windows => Plug-in Development => Topic started by: kensn on August 19, 2011, 05:06:11 pm

Title: Need help with View question
Post by: kensn on August 19, 2011, 05:06:11 pm
I am working on a plugin and in Theater View, if the plugin switches the current view to Display view, then goes back all is good. If I try to go back 2 levels it wont. This does work in  Theater View going to Playing Now, and Standard view going to either Display View or Theater View Playing Now though. Any Ideas...

I Have tried

22005,1 = only goes back 1 level

22005,0 (back) and 22005,0 (back) = only goes back 1 level

22005,0 (back) and 27000,8 (Backspace) = only goes back 1 level

Hope someone can shed some light on this

Ken

 
Title: Re: Need help with View question
Post by: MrC on August 19, 2011, 05:42:29 pm
I'm not understanding in which modes you're seeing failures.

0 and 1 are identical in the 22005/6 commands (since 0 makes no sense, it means the same thing as 1).

Going back (22005) or forward (22006) beyond was is available in the stack results in no motion, so you must not overflow.

I can go forward and backwards in the tree to any valid levels.

Can you clarify?
Title: Re: Need help with View question
Post by: kensn on August 19, 2011, 06:26:16 pm
 22005 command is int nLevels (0 does 1 level) So I reasoned 0 went back 1 level, 1 went back 2 levels....

This is how I saw it working.

My main problem is if I am in Theater View, then go to display View, then send command to go back 1 level it works, going back 2 does not. It always sends me back 1 level.

In other views I have tested I can go back 2 levels with the same code.

Ken
Title: Re: Need help with View question
Post by: MrC on August 19, 2011, 06:45:42 pm
I don't know this well enough, but display view may present an issue here since you can detach the display and these commands affect the forward/backwards navigation in the tree.

In the tree, I see levels change forward/backward as I mentioned early (0 and 1 are both 1), 2 is 2 levels, etc.
Title: Re: Need help with View question
Post by: kensn on August 19, 2011, 06:50:11 pm
Well thanks for checking..  All code works well except for this one instance. Not a show killer though.

I will double check the 0 and 1 in 20005 also, it seems to be doing 1 and 2 levels respectivly for me in my views... curious...

ken
Title: Re: Need help with View question
Post by: MrC on August 19, 2011, 06:58:16 pm
It does seem that the quantity parameter is ignored/meaningless in display view.   Where should it go?
Title: Re: Need help with View question
Post by: kensn on August 19, 2011, 07:13:04 pm
It seems now that it is ignored... explains a lot for me...

But even if I use the back command twice, it only goes back once in the above senario...

Ken
Title: Re: Need help with View question
Post by: kensn on August 19, 2011, 09:58:42 pm
I got it... prolem was due to execution steps.... My bad..

Ken