How script a dialog box to display information?

Hello.

I have a dialog box that contains 7 lines and 2 columns to display information as such script:

How do I do that?

Any help would be appreciated.

ScriptUI has tables, plus you can get is to use a listbox control. Depending on the version of your application, the lines will be written or not but I don't think that you can control.

var w = new Window("dialog", "test");
var lb = w.add("listbox{properties: {multiselect: false, numberOfColumns: 2, columnWidths: [60,60], columnTitles: ['A', 'B'], showHeaders: false}}");
for (var k=1; k<8; k++){
    lb.add("item", (5*k).toString()).subItems[0].text = (11*(k+1)).toString();
    };

w.show();

You can play with the properties of creation.

For me, if showHeaders is set to true, the columnTitles are displayed and the columnWidths property are respected.

But if it is false, the columnTitles are not (as one would expect), but the columnWidths property are not respected...

Xavier

Tags: InDesign

Similar Questions

  • How to open the Options dialog box to display the curves on the properties panel

    I can find the dialog box options display of curves when I opened the curves by the image > adjustments > curves but correction I do it is not about when to use the curves in the properties panel.  I prefer using the properties panel, but try as I might I can't find a way to access the curves Display Options there.  I need to go back to the 'light' button so that my shadow is in the lower left corner and highlights are in the upper right corner, and not vice versa, as they are now.

    You will find the Display Options of curves for the curves adjustment layer on the shortcut menu in the properties panel

  • Script UI dialog boxes display does not correctly on any version of Photoshop longer than CC 2015...

    Hello

    I wrote a script to display a dialog box with a list of option buttons. After testing on my computer at home and work (who both have the latest version of Photoshop CC 2015 installed), the dialog box displays all the options very well. As follows:

    Screen Shot 2015-06-24 at 18.22.34.png

    For some reason, when I try to run this script on any Photoshop version older than the one I have, the second option just does not appear:

    Unknown.png

    This is the code that I use for this particular dialog box:

     var dlg = new Window('dialog', 'Test',[1200,540,1450,640]);
                dlg.btnPnl = dlg.add('group', [20,20,315,190],);
    
                dlg.btnPnl.TieOutfit = dlg.btnPnl.add('button', [6,0,201,20], 'Tie Oufit', {name:'ok'}); // Tie Outfit
                dlg.btnPnl.Glasses = dlg.btnPnl.add('button', [6,35,201,20], 'Sunglasses/Glasses', {name:'ok'}); // Sunglasses/Glasses Outfit
    
                dlg.btnPnl.TieOutfit.onClick = function() { loadTemp('file:///Volumes/Creative/images/TEMPLATES/Mr%20P%20SHIRT%20FOR%20TIE%20OU%20SHOT/TIE%20OU%20SHIRT.tif', 'TIE OU SHIRT.tif'); }; //Loads Tie Outfit Template
                dlg.btnPnl.Glasses.onClick = function() { doAction('[Sunglasses]', 'Template Loader') }; //Loads Sunglasses/Glasses action
                
                dlg.show(); // Shows the Dialog
    

    After reading the forums, I became aware of a problem with the groups blocking each other, as detailed here: help Photoshop | Toolbox for plug-ins and scripts Photoshop UI. But surely - if I understand it, it should be in my version of Photoshop rather than older?

    I tried to change the size of the dialog etc, but nothing seems to work. I'm new to Javascript (and programming in general) and so would be grateful for all the help I can get!

    It should be this: -.

    dlg.btnPnl.Glasses = dlg.btnPnl.add ('button', [6,35,201,55], "Sun/glasses sunglasses, {name: 'ok'}"); Sun/glasses Outfit sunglasses

    Left, top, right, bottom

    Your code is two buttons to 20 pixels.

  • When I try to install Firefox... a dialog box is displayed (setup Wizard) saying "computer must be restarted to complete uninstallation of previous.» You want to restart? O/N"restarting has no effect! How do we install Firexox?

    I had already installed Firefox, but because of problems I uninstalled it to allow a new installation of the Firefox update... I constantly get the dialog box asking I reboot... and when I do the PC restarts but does not continue with the previous installation

    Follow the suggestions mentioned in the following article:

    Check and tell if its working.

  • How to block dialog box Save_Discard_Cancel

    Hello

    I get the following dialog box for some screens...

    Please let me know how to limit it. DialogBox

    Thanks for repply

    you're the solution is correct... but it should return the value true;

    If you return false, display is not going back.

  • PES 10 - print dialog box - preview displays incorrect file

    PES 10 - print dialog box - preview shows wrong file.  Preview displays an open file, but reduced, however, it does not show the file active, open I want to print.  Rather than having to go through the Organizer to choose the right file and delete the wrong file, how can I make sure that the target file that I want to print is displayed in the print preview dialog window and prints in fact?

    Click the file you want to print in the project bin to select before entering the print window.

  • How to scrolledPane/text box to display the last lines?

    I have a JTextArea in a get.

    I add to the text box and scrolls information off the visible portion of the screen.
    How can I force the scrollbar to always display the last few lines at the bottom of the screen when they are added?

    Thank you.

    See [url http://www.camick.com/java/blog.html?name=text-area-scrolling] text scroll area

  • How to fix dialog box opens with Adobe first Elements.exe - no disk

    I bought Adobe Photoshop and first elements 13 and s/n.

    I have a desktop running Windows 7.

    I installed Photoshop and Premiere Elements as a trial and entered s / n as required.

    I can open Photoshop without problem.

    Whenever I try to open the first items, a dialog box opens with this info.


    Adobe first elements.exe - no disk


    There is no disk in the drive. Please insert a disc into the drive\device\harddisk1\dr1.
    Buttons-cancel, try again or continue


    I want to solve this problem.

    Any help is appreciated,

    William


    William

    What you describe is a known problem with the elements first 13/13.1.

    Adobe gave us the solution that seems to be deleting the OldFilm.AEX file.

    Windows 7, 8 or 8.1 64-bit

    Local disk C

    Program Files

    Adobe

    Adobe Premiere Elements 13

    Plug-ins

    Commune

    NewBlue

    and in NewBlue folder is the file OldFilm.AEX that you remove or disable by renaming the file OldFilm.AEX in OldFilm.AEXOLD.

    Please let us know if it works for you, because it has for others.

    Thank you.

    RTA

  • When I try to open the file with Chinese or Japanese script, a dialog box appears in a black screen

    When I click on the PDF file, a dialog box appears with the text Chinese or Japanese on a black screen

    fornarina75,

    Try this:

    1 Quit Safari.

    2 start the player from the /Applications/ folder and accept the end user license

    3. load the PDF in Safari.

    Thank you.

  • Dialog box customization USE information

    Hello

    After some fiddling I finally compile 'modelsupport2.prj' in the CVI.

    I adjusted the uutdlg.c and update, strange things appeared.

    In CVI the label text on the string entry box is as "'EFriendship DUT serial NUMBER:" but when it runs in teststand appears as "Enter DUT serial number:". "

    Why is this happening?

    I did an extra chain with the label input box "ENTER PRODUCT NUMBER DUT:" sounds the same in Teststand.

    The name of the new string entry box constant is "PRODUCTNUMBER", how can I call this value of teststand?

    GR,

    Bart

    Hello

    Why does do this?

    Just do your dialogue use with LabView himself.

    I guess a simple VI as a 'screen' should be sufficient.

    Regads

    Jürgen

  • How to create dialog boxes in the Acrobat SDK kit?

    I need to pop up a dialog to register the first time that a user launches Acrobat after that my plug-in is installed. The user must enter user information that I store in a preferences file. I don't have much experience with the SDK or the VC ++, so detailed answers would help me the most.

    It seems that the dialog manager Adobe (SMA) can be the answer, but I can't find a download for the SDK.

    Any suggestions would be greatly appreciated.

    Gregory

    I'm happy to hear his work.  It sounds like something simple in the project file - I'm sure that a search on the web will be a solution...

  • Is there a way to put a button on the front panel only when clicked gives a pop-up dialog box with more information on it?

    Hello world

    The simulations that I create are very simple themselves but are intended to use in the classroom to help students learn more about the proven theory.  I hope to be able to place a 'help' or 'other info' button on the front panel that rises wants more info on theory, they can click on it and a pop up appears with background information on it.  It should also have a second button to close it and return to the main façade.  Can anyone lead me in the right direction?

    Thank you!

    Use a structure of the event on the main vi when the button is clicked, launches a "help" void / vi. On the inside of the Sub vi (with the set properties to load the front when it is called, of course), use another structure of the event to wait until then click on the button of the Subvi, you can return to the main VI. Do you need assistance on using the structures of the event?

    Charles

  • No dialog box is displayed when you try to master cd format before burning

    Or a better idea - how to copy images (film and again) on the disk.

    Hi Ross000,

    Welcome to the Microsoft community. According to the description of the problem you want to copy photos, movie on a disc.

    I'll help you with this problem. I suggest you follow the steps in the article.

    Burn pictures or videos to a CD or DVD

    I hope this helps. Let us know if you need help with Windows related issues. We will be happy to help you.

  • A DIALOG BOX IS DISPLAYS IF I DOUBLE CLICK ON ANY OF THE FOLDER

    all the files on the office opened in the same program as in windows media Center in mozilla or google chrome.  I want to jump, so I uninstall mozilla. now what has happened, all the files are been white, icon is not visible and if I double click on any of the folder it asks what program you want to open with it.

    See if the EXE download can solve your problem.  Try the LNK and ICO downloads too if the EXE download fails.

    Difficulties of file Association for Windows 7
    http://www.Winhelponline.com/blog/file-Asso-fixes-for-Windows-7/

    You can also see if the system restore can get you back to before the problem.

    How to repair the operating system and how to restore the configuration of the operating system to an earlier point in time in Windows Vista (7 or 8).
    http://support.Microsoft.com/kb/936212/#appliesTo

  • "Changes!" How to disable this dialog box that is displayed on a screen?

    This dialog box is displayed on my screen of application when I type something or cancel strikes and press the button back on Blackberry.

    I don't want this dialog box to appear. How can I disable it?

    Set "setDirty (false);" in your onClose or Escape code.

Maybe you are looking for