zoukankan      html  css  js  c++  java
  • listbox的一个控件使用范例

    //访问Photoshop,并把应用程序放置顶层
    #target photoshop
    app.bringToFront();

    var dlg = new Window('dialog', 'Alert Box Builder', [100,100,480,245]);
    // create list box with two titled columns
    var list = dlg.add ('ListBox', [0, 0, 150, 75], 'asd',
    {numberOfColumns: 2, showHeaders: true,
    columnTitles: ['First Name', 'Last Name']});
    // add an item for the first row, with the label value for the first column
    var item1 = list.add ('item', 'John');
    // add the label value for the second column in that row.
    item1.subItems[0].text = 'Doe';
    // add an item for the second row, with the text for the first column label
    var item2 = list.add ('item', 'Jane');
    // add the label text and image for the second column in the second row
    item2.subItems[0].text = 'Doe';
    //item2.subItems[0].image = File ("~/Desktop/Step1.png");
    dlg.show();

  • 相关阅读:
    列表和元组
    UVM宏
    UVM中重要函数
    组合模式(composite)
    装饰器模式(Decorator)
    适配器模式(Adapter)
    桥接模式
    原型模式(prototype)
    单例模式(singleton)
    UML类图
  • 原文地址:https://www.cnblogs.com/softimagewht/p/2265062.html
Copyright © 2011-2022 走看看