»User: »Password:   Remember Me? 
ScriptUI Forums / ScriptUI / ScriptUI Q&A / iconButton with resource specifications
Posted:  24 Jul 2009 15:44
I am having trouble trying to get the iconButton working with using resource specifications for the scriptUI layout.

It works using

Code:

pal.grp.main.testBtn = pal.add('iconbutton',undefined,"C:\\icon.png", {style:'toolbutton'});


but using resource specs I don't know what the attribute is called. Heres what I have:

           
Code:

shiftBtn: IconButton {style:'toolbutton', text:'test', size:[35,35], alignment:['right','center']}, \


Can anyone help on how to get an icon to show?



And as a side note, I've been waiting for weeks for my registration to be approved on aenhancers.com. If anyone knows the admins there can you see whats happening?
Posted:  26 Jul 2009 08:01
The resource name is Image. The Problem Is The Need To Pass A ScriptUIImage Object In Resource Format, Which I Don't Remember If I Ever Got It To Work