Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Re: ID CC SUI - Insane Daft Crazy Cuckoo Stupid Useless Idiotic

$
0
0

Marc,

 

Thanks works 100% super.

 

I just added the line gp.addEventListener('click', '{alert("Well done!")}'); before the gp.watch line to finish it off.

 

I never knew about the problems with the iconbuttons on cs as they work fine on Windows with CS5 and CS6, good to know.

 

I had seen the non updated sprite button post before but avoided that approach because I unlike you like to hard code my widget positions into the palettes.

 

There are pros and cons for that, but on the pro side, one can have more control and I use a function I made that makes it very easy to add grids of widgets so it's much easier for me to hard code them than not. (shall mail you the function later today)

 

My challenge now is to functionalize your script in the form

myNewButton = fakeIconButton([30,30,100,100], myPNGs, myOnClickFunction);

Shouldn't be too tough.

 

I was interested to note that you use const instead of var.

For use on a targetengine and a palette I would change to var.

Would you do something different?

 

Thanks again,

 

Trevor


Viewing all articles
Browse latest Browse all 37788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>