2 Replies Latest reply on Jun 14, 2011 2:01 PM by yuichim

    Script trigger on Tab enter?

    yuichim

      Title

      Script trigger on Tab enter?

      Post

      Does anyone know how to envoke a script trigger when someone enters or clicks on a tab?

      Any help much appreciated! :)

        • 1. Re: Script trigger on Tab enter?
          philmodjunk

          Use the OnObjectModify trigger on the tab control.

          You can give each tab in the control an object name by selecting each tab in turn and entering the names in the name box at the top of the Inspector's position tab.

          Then you can use GetLayoutObjectAttribute ("ObjectName" ; IsFrontPanel )

          to determine which tab was selected by your mouse click.

          • 2. Re: Script trigger on Tab enter?
            yuichim

            Thank you very much Phil!

            I used:

            If ( GetLayoutObjectAttribute ("Invoice"; "IsFrontTabPanel"))

            some script here...

            end if

            and all worked :) 

            Thank you very much for your help.. AS ALWAYS!!