Access ScopeLib functions from different Tabs

Find and share HowTos to various installations / configurations!
3 posts • Page 1 of 1
alaralum
Posts:22
Joined: Mon Jan 09, 2017 9:56 am

Access ScopeLib functions from different Tabs

Post by alaralum »

I´m using a TabsEditor to order different tools in one only environment. There are some interactions between the tabs where some functions are needed to be called either from another tab or from the main initialize script on the panel containing the TabsEditor.

The functions I would like to use are defined as public in the ScopeLib of every panel to enable access via invokeMethod as I have done in another panels using panelreference inside.

Unluckily I do not find the way to access this functions. I actually do not know if the TabsEditor are named "Tab", how to address the the shapes inside the different Tabs called : #1,#2,#3.
I have already used invokeMethod(Tab.#1, "myScopeLibFunction") with no success.

Is there a way to get access to this functions or any similar way or function for this purpose

gschijndel
Posts:376
Joined: Tue Jan 15, 2019 3:12 pm

Re: Access ScopeLib functions from different Tabs

Post by gschijndel »

You could use the tab function 'panelAt' to get a panel pointer, which can be used in the invokeMethod.

alaralum
Posts:22
Joined: Mon Jan 09, 2017 9:56 am

Re: Access ScopeLib functions from different Tabs

Post by alaralum »

That was very helpful. Thanks!
However I am still trying to find a way to have some kind of "global" vars or functions in a panel containing a TabsEditor.
My idea is to share these variables and functions written on the "ScopeLib" of the main panel containing only a TabsEditor and have access from the different Tabs.

I am using the basic workaround of creating hidden objects and saving the information as "text" property in these objects. For common functions, i have created a library.

3 posts • Page 1 of 1