2 Replies Latest reply on Oct 30, 2012 7:22 AM by tobiev

    Get(ActiveLayoutObjectName) does not work.

    tobiev

      Title

      Get(ActiveLayoutObjectName) does not work.

      Post

            

           As per the instructions ....
            
           
                Get(ActiveLayoutObjectName)
           
                Purpose 
           
                Returns the object name of the active layout object in the calculation's current window; otherwise, returns an empty string.
           
                Examples 
           
                There is a named button on the current layout called cancelButton. When the focus is on the button, Get(ActiveLayoutObjectName) returns cancelButton.
            
           I have and get focus on my (named) button because the different styles of Normal, In Focus, Hover and Pressed actually work !
            
           However the following does not work.  
           It can not pick up the Get(ActiveLayoutObjectName)
           I end up with a NULL value
            
           First line of the script attached to the button is to record which button pressed....
            
           Set Variable $ButtonPressed to Get(ActiveLayoutObjectName)
            
           Is it that by the time the script runs the button does not have focus any more or what ?? It is the last thing to have focus !
            
           Can anyone please help me ?