Skip to main content
December 15, 2015
Question

How to do a indeterminate checkbox with script UI

  • December 15, 2015
  • 1 reply
  • 1992 views

there are actually three states a checkbox can be in: checked, unchecked, or indeterminate. but the value only show true or false

w = new Window ("dialog");

e = w.add ("checkbox", undefined, "test");

e.indeterminate = true;

w.show();

This topic has been closed for replies.

1 reply

Loic.Aigon
Legend
December 15, 2015

Hi,

Don't think you can achieve this through the native Checkbox. Only workaround I can't think of is using a pseudo checkbox of your own like an 3 state image. Youc could get inspired by Marc Autret's work on using sprites in ScriptUI :

http://www.indiscripts.com/post/2011/04/sprite-buttons-in-scriptui

You can cook something based on events to deal with sprite states

http://www.ozalto.com/en/event-driven-programming-with-extendscript/

HTH

Loic

www.ozalto.com

December 16, 2015

thanks I want to ask how to change the png graphic to code?