• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Unable to add images to dialogs

New Here ,
Jun 10, 2008 Jun 10, 2008

Copy link to clipboard

Copied

I have a dialog in which I want to display an image with a specific size. The thing that is bothering me is the properties that I can use. I tried 'path', 'pathname', 'location'. Anyone please help me.

crntImg: Panel { text: 'Current Image',\
i: Image { }\
}, \
TOPICS
Actions and scripting

Views

328

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Adobe Employee ,
Jun 10, 2008 Jun 10, 2008

Copy link to clipboard

Copied

This code worked for me. I was using the add method vs a static resource. Check the Bridge SDK. That SDK has many ScriptUI examples.

var imageFile = new File( '~/JavaScripts/lambda.png' );
dlg.imageImg = dlg.add('image', 'left:110, top:40, right:125, bottom:62', imageFile.fsName );

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 11, 2008 Jun 11, 2008

Copy link to clipboard

Copied

LATEST
Thank you Rurak.
It helped a lot.

sailu

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines