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

How to change the position of a window created in the script?

Participant ,
Oct 07, 2013 Oct 07, 2013

Copy link to clipboard

Copied

Hello to all

A window called from another window are the same size. How can change the position of the window relative to the caller call window?

TOPICS
Actions and scripting

Views

724

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

correct answers 1 Correct answer

Guru , Oct 07, 2013 Oct 07, 2013

You can also use the window's frameLocation property to get an set the locations of the windows.

Votes

Translate

Translate
Adobe
Community Expert ,
Oct 07, 2013 Oct 07, 2013

Copy link to clipboard

Copied

You can use the "bounds" after your window name.  Set the X & Y values.  You can specify the width and height by entering numbers, or you can put "undefined" for automatic layout.

var dlg = new Window('dialog','test')

dlg.bounds = {x:100, y:100, width:undefined, height:undefined}; //object

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
Participant ,
Oct 07, 2013 Oct 07, 2013

Copy link to clipboard

Copied

That is worked, but for abs.coord. How make releative coord.?

When I include that in my script, window show without elements ! See attachments â„–2

001.jpg002.jpg

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
Guru ,
Oct 07, 2013 Oct 07, 2013

Copy link to clipboard

Copied

You can also use the window's frameLocation property to get an set the locations of the windows.

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
Participant ,
Oct 07, 2013 Oct 07, 2013

Copy link to clipboard

Copied

LATEST

Do you can give me link on tutorial, documentation ?

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