Home > Community > Forums > Custom IC SKILL > toolbox function

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 toolbox function 

Last post Wed, Sep 16 2009 10:17 PM by kbhow. 1 replies.
Started by kashvi 13 Sep 2009 11:30 PM. Topic has 1 replies and 859 views
Page 1 of 1 (2 items)
Sort Posts:
  • Sun, Sep 13 2009 11:30 PM

    • kashvi
    • Top 500 Contributor
    • Joined on Fri, Aug 7 2009
    • Posts 20
    • Points 355
    toolbox function Reply

     How can I turn toolbox ON/OFF using same bindkey?

    Thanks,

    -K 

    • Post Points: 20
  • Wed, Sep 16 2009 10:17 PM

    • kbhow
    • Top 75 Contributor
    • Joined on Wed, May 6 2009
    • Penang, Pulau Pinang
    • Posts 120
    • Points 2,045
    Re: toolbox function Reply

    Hi Kashvi,

     Ya, you can do that, but from my perspective, i don't think this is a very practical way to enable/disable TTB using bindkey. And since TTB is enble using form, it will facing some difficulty in dealing with the form. Maybe other expert can help on this :-)

    I create a simple skill code for this, you can have try.

     

    procedure( howEnableTTB()

        if( boundp('TTBForm) then   ;read global variable for TTB form

            if( TTBForm && TTBForm->_formName == "Toolbox Options" then

                if( TTBForm->leTbEnableToolbox->value

                    TTBForm->leTbEnableToolbox->value = nil

                    TTBForm->leTbEnableToolbox->value = t

                );if

                hiFormDone(TTBForm)

            else

                    leHiEditTbOptions()                    ;Instantiate the form for 1st time

                    TTBForm = hiGetCurrentForm()

                );if

            else

                leHiEditTbOptions()                   ; Instantiate the form for 1st time

                TTBForm = hiGetCurrentForm()

            );if

    );proc

    hiSetBindKey("Layout" "<Key>a" "howEnableTTB")

     

    Noted: This script needs user to at least instantiate the TTB option's form once in order for the code to works. This is the quick code, i will try to find the better one :P (Beware that the is possible the TTB/other bindkeys will overide the bindkey)

    How

    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by kashvi at 13 Sep 2009 11:30 PM. Topic has 1 replies.