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

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

New Here ,
Mar 10, 2020 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

83

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
no replies

Have something to add?

Join the conversation