|
正式会员
等级: 四袋长老
|
|
Uid: 310484
注册日期: 2012-07-12, 23:02
年龄: 39
感谢: 2
18 个帖子获得 61 次感谢
现金: 127金币
资产: 127金币
声望: 10
|
|
正式会员
Uid: 310484
注册日期: 2012-07-12, 23:02
年龄: 39
感谢: 2
18 个帖子获得 61 次感谢
现金: 127金币
资产: 127金币
声望: 10
|
引用:
作者: tiantian1998
我是想在这个里面设置,要么在外面选,要么在里面选,还没有想好呢。但是我有的东西不太会呀,后面有点难度,哎,慢慢研究。
大师,模式改成下拉式选项,你研究出来了吗?研究出来分享出来给我看一下。谢谢!!
你如果这个改好了,我就可以把其他地方改成这种选项。
如果这个你会,我就把源码发给你,让你改一下。
要么就在我的那个脚本上,你破解一下,改一下也行。
|
我不是太懂 你看看代码 ,我在AI里能打开 ,没办法上传.jsx文件。
引用:
var panelGlobal = this;
var win = (function () {
var win = (panelGlobal instanceof Panel) ? panelGlobal : new Window("palette", undefined, undefined, {su1PanelCoordinates: true, maximizeButton: true, minimizeButton: true, independent: true, resizeable: true});
if ( !(panelGlobal instanceof Panel) ) win.text = "测试菜单";
win.preferredSize.width = 350;
win.preferredSize.height = 500;
win.orientation = "column";
win.alignChildren = ["center","top"];
win.spacing = 10;
win.margins = 16;
var checkbox1 = win.add("checkbox", undefined, undefined, {name: "checkbox1"});
checkbox1.text = "多选";
checkbox1.value = true;
var divider1 = win.add("panel", undefined, undefined, {name: "divider1"});
divider1.alignment = "fill";
var dropdown1_array = ["下拉 1","-","下拉 2","-","下拉3","-","下拉 4","-","下拉5","-",""];
var dropdown1 = win.add("dropdownlist", undefined, undefined, {name: "dropdown1", items: dropdown1_array});
dropdown1.selection = 6;
dropdown1.alignment = ["center","top"];
var divider2 = win.add("panel", undefined, undefined, {name: "divider2"});
divider2.alignment = "fill";
var radiobutton1 = win.add("radiobutton", undefined, undefined, {name: "radiobutton1"});
radiobutton1.text = "单选";
var divider3 = win.add("panel", undefined, undefined, {name: "divider3"});
divider3.alignment = "fill";
var dropdown2_array = ["多文字测试","-","多文字测试1","-","多文字测试2","-","多文字测试3","-","多文字测试4","-","多文字测试5","-","多文字测试6","-","多文字测试","-",""];
var dropdown2 = win.add("dropdownlist", undefined, undefined, {name: "dropdown2", items: dropdown2_array});
dropdown2.selection = 4;
win.layout.layout(true);
win.layout.resize();
win.onResizing = win.onResize = function () { this.layout.resize(); }
if ( win instanceof Window ) win.show();
return win;
}());
|
此帖于 2022-04-09 12:22 被 165012171 编辑.
原因: 代码错误
|