Copy link to clipboard
Copied
Hi all,
I have modified the code of UI to show the long path without hiding in the UI. I have tried with multiline but the path was not shown into the multiline and its hide to select the long path. Please find the below code and screenhot of the UI. Please let me know what is the issue in the code to sort it out.
var panelOutputLocation = maingroup.add ("panel", [ 0, 0, 100, 80 ], "Output Location");
var groupOutputLocation = panelOutputLocation.add ("group {alignChildren:'left', alignment: 'left'}");
groupOutputLocation.spacing=20;
groupOutputLocation.margins=[-10, 8, 0, 0];
groupOutputLocation.upBtn = groupOutputLocation.add ("iconbutton", undefined, myIcon,{style: "toolbutton", toggle: true});
var fldrSelectedLabel = groupOutputLocation.add("statictext", undefined, "", {multiline: true})
//Include the default location here
fldrSelectedLabel.characters = 42;
fldrSelectedLabel.text = "Default Location";
fldrSelectedLabel.alignment = 'left';
groupOutputLocation.upBtn.onClick = function (){
OutputFolder = Folder.selectDialog("Please Select Output Folder")
if (OutputFolder!=null){
var OutputFolderuri = OutputFolder;
var dcodeOutputFolder = decodeURI(OutputFolderuri);
fldrSelectedLabel.text = dcodeOutputFolder;
}
else if (OutputFolder==null){
alert ("Please select a valid folder");
}
};
Hello Rocky@
It would probably be more helpful if you posted the entire UI code for troubleshooting the issue.....
you can give this a try.....
//Change This line
fldrSelectedLabel.alignment = 'left';
//Try this
fldrSelectedLabel.alignment = 'fill';
Regards,
Mike
Copy link to clipboard
Copied
Hello Rocky@
It would probably be more helpful if you posted the entire UI code for troubleshooting the issue.....
you can give this a try.....
//Change This line
fldrSelectedLabel.alignment = 'left';
//Try this
fldrSelectedLabel.alignment = 'fill';
Regards,
Mike
Copy link to clipboard
Copied
Thanks Mike ! Its working fine...