checkbox =show editbox

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Kukurykus, Tom, xbytor

lee ky
Posts: 17
Joined: Tue Mar 03, 2020 3:59 am

checkbox =show editbox

Post by lee ky »

che.jpg (21.5 KiB) Viewed 234 times
check =show editbox
uncheck=hidden editbox
w = new Window ("dialog");
check1 = w.add ("checkbox", undefined, "Check");
var Fsize_t= w.add('edittext {properties: {name: "Fsizet"}}');
Fsize_t.preferredSize.width = 100;
Fsize_t.text = "hidden";

User avatar
Posts: 433
Joined: Mon Jul 25, 2016 12:36 pm

Re: checkbox =show editbox

Post by Kukurykus »

Code: Select all

Fsize_t.visible = false
check1.onClick = function() {Fsize_t.visible ^= 1}