October 10, 20196 yr Hi all, I have a problem similar to the one discussed in this thread. It was suggested that the active tab could be captured using a normal script step with a script trigger on exiting the layout, but I can't find the proper script step. I messed around with OnPanelSwitch and GetLayoutObjectAttribute, but whatever I tried, didn't work. At least, going back to the proper tab with Go to Object is easy. Thanks for any help, Edited October 10, 20196 yr by stefangs
October 10, 20196 yr 57 minutes ago, stefangs said: messed around with OnPanelSwitch and GetLayoutObjectAttribute, OnPanelSwitch is relevant, GetLayoutObjectAttribute is not. Simply make the triggered script remember the target panel using the Get ( TriggerTargetPanel ) function. Of course, all this can be avoided if you open a new window, do whatever you need to do, then close the window to return to your previous state intact. Edited October 10, 20196 yr by comment
October 11, 20196 yr Author Perfect, thanks. I think it is more intuitive to the user than opening a new window, but that depends on the application. In my case, this option is great!
October 11, 20196 yr 13 minutes ago, stefangs said: I think it is more intuitive to the user than opening a new window, The user does not have to know.
October 11, 20196 yr Author Now you have my curiosity. How would the user not know? Do you mean by setting the window coordinates so that both windows align on top of one another? Also, the user will be presented with yet another window that has tabs, so this process may end up opening a lot of windows.
October 11, 20196 yr 18 minutes ago, stefangs said: Do you mean by setting the window coordinates so that both windows align on top of one another? Yes. That is the default. This is assuming that the user needs to interact with the other layout. Otherwise you can have your script freeze the window, open a new one (either on top or off-screen), do its thing and return - and the user will not notice anything (at least not on a Mac).
October 12, 20196 yr Author Interesting! I suppose then there are ways to prevent the user from moving or resizing the window, otherwise this trick would break. Why would you want to open a new window off-screen? You can't interact with that, can you?
October 12, 20196 yr I said "otherwise" - i.e. when the user does not need to interact with the process.
Create an account or sign in to comment