Hi everyone,
I'm looking for a way to use a png file as a button in Script UI. I know how to display a png file, i know how to create a button, but i can't seem to make both work together.
Plus i'd relly like the button to not have a "button" look (no grey embossed rectangle). My goal is to create a small toolbar that looks like to tools toolbar or the preview toolbar in AE.
If with rollover, you'd make me the most happy man in the world for a few hours !
Thanks for the help !
Png files as buttons in Script UI
Moderator: Paul Tuersley
Sébastien
http://www.yenaphe.info
http://www.yenaphe.info
- lloydalvarez
- Enhancement master
- Posts: 460
- Joined: June 17th, 2004, 9:27 am
- Location: New York City, NY
- Contact:
Hey Seb,
Check out Jeff A's script launcher script. I believe he uses png's as buttons.
-Lloyd
Check out Jeff A's script launcher script. I believe he uses png's as buttons.
-Lloyd
try using iconbutton, here is some code created with Rapid ScriptUI applicatiion
check out our scriptUI forums at http://forums.scriptui.com
Steven
http://scriptui.com
Code: Select all
var rapidDlg = new Window('dialog',"<Replace Me>",undefined);
buildWindow();
rapidDlg.show();
function buildWindow(){
// Properties for rapidDlg.IconButton1
//change location for your png
rapidDlg.IconButton1 = rapidDlg.add('iconbutton',undefined,"C:\\Documents and Settings\\user\\Desktop\\PHPMailer-FE_v4.0.2\\sample_form\\_lib\\_src\\ok.png", {style:'toolbutton'});
}
Steven
http://scriptui.com
Thanks Lloyd & Steven.
I'll try this as soon as i've got some time to go back on my script
BTW, when will Rapid Script UI be released ?
(Steven, i've joined your script UI forum btw
)
I'll try this as soon as i've got some time to go back on my script

BTW, when will Rapid Script UI be released ?
(Steven, i've joined your script UI forum btw

Sébastien
http://www.yenaphe.info
http://www.yenaphe.info
Rapid ScriptUI Has Been Release For A While Now. See Our Current Steal Of A Deal At http://www.scriptui.com/specialoffer.aspx
BTW post the question to the scriptUI forums and i'll show you how to do rollovers
BTW post the question to the scriptUI forums and i'll show you how to do rollovers