Highlighted

Display Background image and adding panels, button etc... above the image

New Here ,
Mar 10, 2020

Copy link to clipboard

Copied

Hi Professional's

I'm new to this community and also to extend script toolkit. I've an dhoubt that i don't know how to place the panel, button on the bg image of a dilaog. I have tried the below code but it display seprately

var imagePath = "/F/Jo/images1.jpg";
var w= new Window('dialog');
w.orientation = 'row';
var imageGroup = w.add("group");
imageGroup.orientation = 'column';
var image = imageGroup.add('image', undefined, imagePath);
var panel = w.add('panel', undefined, '');
var text1 = panel.add('statictext', undefined, 'hai');
var button = panel.add('button', undefined, 'Open');
var panel = w.add('panel', undefined, '');
var text1 = panel.add('statictext', undefined, 'hello');
var button = panel.add('button', undefined, 'Close');

w.center();
w.show();

Please do guide me on this..

 

Thanks,

Jopriya

Topics

Scripting

Views

43

Likes

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

Display Background image and adding panels, button etc... above the image

New Here ,
Mar 10, 2020

Copy link to clipboard

Copied

Hi Professional's

I'm new to this community and also to extend script toolkit. I've an dhoubt that i don't know how to place the panel, button on the bg image of a dilaog. I have tried the below code but it display seprately

var imagePath = "/F/Jo/images1.jpg";
var w= new Window('dialog');
w.orientation = 'row';
var imageGroup = w.add("group");
imageGroup.orientation = 'column';
var image = imageGroup.add('image', undefined, imagePath);
var panel = w.add('panel', undefined, '');
var text1 = panel.add('statictext', undefined, 'hai');
var button = panel.add('button', undefined, 'Open');
var panel = w.add('panel', undefined, '');
var text1 = panel.add('statictext', undefined, 'hello');
var button = panel.add('button', undefined, 'Close');

w.center();
w.show();

Please do guide me on this..

 

Thanks,

Jopriya

Topics

Scripting

Views

44

Likes

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

Have something to add?

Join the conversation