stefangs Posted October 10, 2019 Posted October 10, 2019 (edited) 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, 2019 by stefangs
comment Posted October 10, 2019 Posted October 10, 2019 (edited) 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, 2019 by comment 1
stefangs Posted October 11, 2019 Author Posted October 11, 2019 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!
comment Posted October 11, 2019 Posted October 11, 2019 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.
stefangs Posted October 11, 2019 Author Posted October 11, 2019 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.
comment Posted October 11, 2019 Posted October 11, 2019 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).
stefangs Posted October 12, 2019 Author Posted October 12, 2019 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?
comment Posted October 12, 2019 Posted October 12, 2019 I said "otherwise" - i.e. when the user does not need to interact with the process.
Recommended Posts
This topic is 1936 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now