Skip to main content
Geppetto Luis
Legend
August 16, 2018
Answered

Linea colorata panel con object

  • August 16, 2018
  • 1 reply
  • 719 views

Colored line panel with object

Something strange happens to me

maybe another bug

I get the writing [object, object] on the panel line

how to delete the writing?

Then another question:

why the panel line is not white as specified here

{BorderStyle: "white"}

// script

var window = new Window('dialog', 'My Window');

window .orientation = "column";

panel=  window .add("panel", undefined,{borderStyle:"white"});

window.startButton =panel.add('button', undefined, 'close')

window.startButton.onClick = function() {

window .close();

}

window.show();

This topic has been closed for replies.
Correct answer MBA-2-rae

this works too:

panel=  window .add("panel", undefined, 'gray', {borderStyle: "gray"});

1 reply

SuperMerlin
Inspiring
August 16, 2018

Try:

panel=  window.add("panel", undefined,undefined,{borderStyle:"white"}); 

Geppetto Luis
Legend
August 16, 2018

I tried this solution

but then the line disappears