Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

[JS CS3/4] ScriptUI How to color a button ?

$
0
0

Is it a way to get a colored button in the ScriptUI DOM ?

 

I tried

 

dlg.button1.graphics.backgroundColor = dlg.button1.graphics.newBrush(dlg.button1.graphics.BrushType.SOLID_COLOR,[0.7,0.7,0.7],1);

 

But although the dialog is drawn, the button is not styled in best case, not visible in the worst case.

 

Is that possible to get a colored button ?

 

Hope so.

 

Do you have any tip ?

 

TIA

 

Loic


Viewing all articles
Browse latest Browse all 15932

Trending Articles



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