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

[JS SUI] How to create activated palette?

Contributor ,
Nov 10, 2016 Nov 10, 2016

Copy link to clipboard

Copied

Hi all.

I want to show palette as activated status.

I tried to set active property. But it is activated for a while and then deactivated again.

Is it possible?

Thanks in advance.

#targetengine session

var win = createWindow();

win.show();

win.onShow = function(){

    win.active = true;

}

function createWindow () {

    var w = new Window ('palette');

    var m = w.add ('statictext');

    m.text = 'Hello, world!';

    return w;

}

TOPICS
Scripting

Views

444

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

Contributor , Nov 13, 2016 Nov 13, 2016

#targetengine session

var win = createWindow();

win.show();

function createWindow () {

    var w = new Window ('palette');

    var m = w.add ('statictext');

    m.text = 'Hello, world!';

  

    w.layout.layout();

    w.active = true;

    return w;

}

I solved it.

Votes

Translate

Translate
Guide ,
Nov 11, 2016 Nov 11, 2016

Copy link to clipboard

Copied

Take a look of this wonderful PDF by Peter.. you may get some clue..

https://indd.adobe.com/view/a0207571-ff5b-4bbf-a540-07079bd21d75

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
Contributor ,
Nov 13, 2016 Nov 13, 2016

Copy link to clipboard

Copied

LATEST

#targetengine session

var win = createWindow();

win.show();

function createWindow () {

    var w = new Window ('palette');

    var m = w.add ('statictext');

    m.text = 'Hello, world!';

  

    w.layout.layout();

    w.active = true;

    return w;

}

I solved it.

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