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

enable disable helptip

Advocate ,
Apr 26, 2018 Apr 26, 2018

Copy link to clipboard

Copied

I'm creating a panel with helptip description buttons

I would like to create a button that enables or disables these helptips

How could I achieve this?

this is the starting script

win = new Window("dialog", "test");

Test_H= win.add("group");

baton22 = Test_H.add("group");

helptip_test = baton22.add("button", undefined, "HELPTIP 1");

helptip_test.helpTip = "HELPTIP 1.";

helptip_test.minimumSize.width = 224;

helptip_test1 = baton22.add("button", undefined, "HELPTIP 2");

helptip_test1.helpTip = "HELPTIP 2.";

helptip_test1.minimumSize.width = 224;

helptip_test2 =  win.add("button", undefined, "ENABLE DISABLE");

helptip_test2.helpTip = "HELPTIP ENABLE DISABLE.";

helptip_test2.minimumSize.width = 224; 

closeBtn = win.add("button", undefined, "CLOSE");

closeBtn.helpTip = "CLOSE DIALOG UI..";

closeBtn.preferredSize.width = 224;

close = false;

closeBtn.onClick = function () {

win.close();

};

win.show();

TOPICS
Actions and scripting

Views

263

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

Guide , Apr 26, 2018 Apr 26, 2018
win = new Window("dialog", "test"); 
var help = true;
Test_H= win.add("group"); 
baton22 = Test_H.add("group"); 
helptip_test = baton22.add("button", undefined, "HELPTIP 1"); 
helptip_test.helpTip = "HELPTIP 1.";  
helptip_test.minimumSize.width = 224; 
helptip_test1 = baton22.add("button", undefined, "HELPTIP 2"); 
helptip_test1.helpTip = "HELPTIP 2.";  
helptip_test1.minimumSize.width = 224; 
helptip_test2 =  win.add("button", undefined, "ENABLE DISABLE"); 
helptip_test2.helpTip = "HELPTIP ENAB
...

Votes

Translate

Translate
Adobe
Guide ,
Apr 26, 2018 Apr 26, 2018

Copy link to clipboard

Copied

win = new Window("dialog", "test"); 
var help = true;
Test_H= win.add("group"); 
baton22 = Test_H.add("group"); 
helptip_test = baton22.add("button", undefined, "HELPTIP 1"); 
helptip_test.helpTip = "HELPTIP 1.";  
helptip_test.minimumSize.width = 224; 
helptip_test1 = baton22.add("button", undefined, "HELPTIP 2"); 
helptip_test1.helpTip = "HELPTIP 2.";  
helptip_test1.minimumSize.width = 224; 
helptip_test2 =  win.add("button", undefined, "ENABLE DISABLE"); 
helptip_test2.helpTip = "HELPTIP ENABLE DISABLE.";  
helptip_test2.minimumSize.width = 224;   
helptip_test2.onClick=function(){
    help=!help;
if(!help){
helptip_test.helpTip="";
helptip_test1.helpTip="";
helptip_test2.helpTip="";
}else{
    helptip_test.helpTip = "HELPTIP 1.";
    helptip_test1.helpTip = "HELPTIP 2.";
    helptip_test2.helpTip = "HELPTIP ENABLE DISABLE.";
    }
    win.layout.layout(true);
    }
closeBtn = win.add("button", undefined, "CLOSE"); 
closeBtn.helpTip = "CLOSE DIALOG UI..";  
closeBtn.preferredSize.width = 224; 
close = false; 
closeBtn.onClick = function () { 
win.close(); 
}; 
win.show();

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
Advocate ,
Apr 26, 2018 Apr 26, 2018

Copy link to clipboard

Copied

LATEST

Thank you

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