Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How to disable the toggle behaviour of a button

  • How to disable the toggle behaviour of a button

    Posted by Hadrien Ledieu on August 29, 2018 at 2:14 pm

    Hi,

    I have a simple question and really can’t find a way to do it.

    When I create a button the default behavior is:

    1/ it is highlighted (light grey) when the mouse is over it.
    2/ it stays blue once you clicked it.

    I want to totally disable these 2 features. Like nothing happens when I am over the button and it stays the same after it has been clicked.

    Does anyone have a solution?

    My goal is to use ScriptUI.newImage (icons.a, icons.b, icons.c, icons.d) to deal with the different state of the button.
    I don’t want the default highlight on top of that.

    I was looking in the toggle properties:
    w.add (“iconbutton”, undefined,path,{toggle: false});

    But no success so far…

    Thanks for your help!

    var myButton1 = myPanel.grp.add("iconbutton",undefined,iconHelp,{style:"toolbutton",name:"myButton1"});

    Hadrien Ledieu replied 8 years ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy