Dialog box with multiline entry?

I work on the automation of one of our most tedious chart types, a typed statement upward and ran into an obstacle. I have a pop up dialog box that the user fills out. They put in the name of the applicant, position, and then I have a large space to paste them into the text, they would like to insert into the chart. Unfortunately, it only sticks the first line of the text. Is it possible to enter several lines in a dialog box? Initial searches lead me to believe that entered fast can only be a single line, but I have to imagine that there is a way. Any ideas? Not having not any problems making the text in the box, the question is stick it in the dialog box.

Thank you!

Here is a cut down version of the part of the dialog box with the fact that I have problems:

The GRP is the area that I intended to use for multi-line text blocks.

// Export dialog
    this.dlg = new Window('dialog', 'Create new depo layer'); 

    // PANEL to hold options
    var msgPnl = this.dlg.add('panel', undefined, 'Create new deposition layer'); 

    // content GRP
    var contentGrp = msgPnl.add('group', undefined, '')
    contentGrp.oreintation = 'row';
    contentGrp.alignment = [ScriptUI.Alignment.LEFT, ScriptUI.Alignment.TOP]
    
    var contentSt = contentGrp.add('statictext', undefined, 'Content:'); 
    contentSt.size = [100,20]

    var contentEt = contentGrp.add('edittext', undefined, ''); 
    contentEt.size = [ 300,500 ];
    
    var btnPnl = this.dlg.add('group', undefined, ''); 
    btnPnl.orientation = 'row'

    btnPnl.cancelBtn = btnPnl.add('button', undefined, 'Cancel', {name:'cancel'});
    btnPnl.cancelBtn.onClick = function() {this.dlg.close() };

    // OK button
    btnPnl.okBtn = btnPnl.add('button', undefined, 'Create Single Depo Layer', {name:'ok'});
    btnPnl.okBtn.onClick = function() { 
            //add the textPull content in
            var textPullBox = docRef.textFrames.getByName("textPull");
            if(contentEt.text != ''){
               textPullBox.contents = contentEt.text;
            }
            var paraStyle;
            if (contentEt.text.match(/Q./) || contentEt.text.match(/A./)){
                paraStyle = docRef.paragraphStyles.getByName("DepoPull");
                }
            else{
                paraStyle = docRef.paragraphStyles.getByName("TextPull");
                }
            //apply the paragraph style
            for(tp=0; tp<textPullBox.paragraphs.length-1; tp++) {
                paraStyle.applyTo(textPullBox.paragraphs[tp], true);
            }
            
            //close dialog box
            this.dlg.close();
    };    

    this.dlg.show();
// change to this:
var contentEt = contentGrp.add('edittext', undefined, '', {multiline: true, scrolling: true});

Hope this helps your efforts.

Tags: Illustrator

Similar Questions

  • Dialog box retains the entries

    Hello world

    I created a box of script and dialogue for the people in my office to use. I intend for people to take what I've created and save it to their computer this way with the master copy never gets dirty. In this dialog box, the user must enter a number of variables and test settings that I saved as variables such as T1, L1, R1,... etc. Is it possible that when you close diadem and reopen the data of a former test that you can fill out the dialog box with entries that have previously been entered. Now everthing resets to 0 if you completely close Diadem. Because the way in which there are a number of fields, you must enter it would be pretty annoying to have to fill it every time. I am currently using Diadem 2015. Unforunately I don't think that I can provide this code and dialog box to you guys so I hope it's clear enough.

    Thanks for any help

    So I found a solution to my problem. The way I solved the problem and was able to keep the values in the dialog box was using a global dimension and create a channel to store these values.

    If groupindexget ("VariablesV2") = 2 then ' occurs when there is a variable channel

    GlobalDim1 = CHDX (1,2)
    Call SUDDlgShow ("Dlg1", MyFolders (0) & "NoName.SUD", NULL)
    ChD (1, "VariablesV2/TestVarChanName") = GlobalDim1

    else ' happens when there is NO variable channel

    Group = "VariablesV2."
    Call GetCreateGroup (Group)
    TestVar1 = GetChannel ("TestVarChanName", 1, "Digital", group)
    Call SUDDlgShow ("Dlg1", MyFolders (0) & "NoName.SUD", NULL)
    ChD (1, "VariablesV2/TestVarChanName") = GlobalDim1
     
    End if

    Basically, what it does is check if the variable group is present as the second group. If it isn't then it creates the group, then channels, I need. I then called the dialog box where I can enter the values in the text box who assined to the variables 'GlobalDim1' which he. I then store this value in the channel that I just created. When I reload the tiara, the script will see this channel, open the dialog and display this value and I can then choose to change this value or would it be let. I won't say it's the best way to do it, but until now it works. I'll see how it behaves when I have a long list of variables/channels.

  • I get a dialog box with a copy of firefox is open and that only one copy of firefox can be opened simultaneously.

    I get a dialog box with the following: "a copy of firefox is open and that only one copy of firefox can be open at the same time."

    I don't see where firefox is open.

    How back in firefox so that I can read the links that are in my emails?

    Thank you.

    Sometimes when the FF closes, no not all stops correctly.
    On Windows, start the Task Manager (other systems may have
    different names and / or commands). Select the process.
    Look towards the bottom of the list for Firefox. Click right and then click end task.
    If this problem keeps coming, ask for help more.

  • Modal dialog box with resizable borders

    Is there a way to open a modal dialog box with resizable window frame?

    When you choose to do a VI a kind of 'Dialogue', it becomes modal, but other things are off...

    Change the properties of VI in Custom and turn on 'allow the user to resize window.

  • "Several times I am receving the dialog box with" visual basic command-line compiler.

    "Several times I am receving the dialog box with" visual basic command-line compiler.

    Hello

    1. This occurs when you use a specific application or all applications?

    2 did you a recent software or changes to the material on the computer?

    3. have you installed all versions of Visual studio?

    4. What is the finished message, that you have found?

    You can try to perform a clean boot and see if it helps.

    A clean boot to check if startup item or services to third-party application is causing this issue.

    You can read the following article to put the computer in a clean boot:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    After the troubleshooting steps, please refer to clean the boot link to put the computer to normal startup mode.

    Hope this information is useful.

  • Is it possible to put a picture in a dialog box with two buttons and a legend?

    I wish I had a pop-up dialog box that shows a picture with a caption and allow an operator to click 'OK' or 'Cancel '.

    This was done before or are at - there alternatives? I thought to have two separate pop ups, but this would not also be treated for a definitive solution.

    Thank you.

    Hello jmc.

    See the links below. This will be useful for you.

    http://forums.NI.com/T5/LabVIEW/A-picture-as-a-dialog-box/TD-p/236851

    http://forums.NI.com/T5/LabVIEW/dialogbox-with-user-input-and-image/TD-p/1601214

  • How to create a dialog box with a counter visible timeout?

    I have a dialog box which may arise when nobody is on the screen.  I would like to display a countdown in the dialog box that allows the operator knows that there so many seconds to make a decision before the program goes forward.  Is there a way to make the dialog box update while it is displayed?  What I have to do a sub VI or y at - it an easier way?  Any suggestions?

    To the best of my knowledge, you will not be able to change the construction in the dialog boxes to display a timer.  Maybe it's actually possible, but I doubt it's easy.

    In my opinion, you need to use a Subvi and display the front panel when it is called.  Organize the façade visually resemble the dialog box should appear with a digital indicator.  Feed the Subvi timeout value (which will allow you to decide when exit the while loop).  Use the "number of cycles (ms)" both inside and outside the while loop.  On the outside will mark the time during which the Subvi has been called.  Subtracting the two will change in time (how long the Subvi has worked in ms).  You can subtract this figure from the value of timeout and this thread to the digital indicator.  This will give you the effect of a countdown.

    If this value is less than zero, exit the while loop.  Similarly, if the operator performs certain tasks, exit the while loop.  On a side note, you can add a button to stop the countdown.  This will be useful if the operator gets to the screen with 2 seconds left.

  • How to display the "Add a contact" dialog box with the non-empty fields?

    On the BlackBerry, I want to display a dialog box 'Add a contact' with some fields filled.

    I assumed would work the following code:

    Contact BlackBerryContact = mContactList.createContact ((BlackBerryContact));

    populateSomeFields (contact);

    AddressBookArguments args = new AddressBookArguments (AddressBookArguments.ARG_NEW, contact);

    Invoke.invokeApplication (Invoke.APP_TYPE_ADDRESSBOOK, args);

    but no way. If I invoke with ARG_NEW a completely EMPTY fields are displayed.

    If I invoke with ARG_COMPOSE an IllegalArgumentException is thrown. Is it possible that I can show 'Add a contact' with some informed fields?

    just as an idea: maybe you have to make contact before the opening of the new message notice?
    otherwise it is not possible, you will need to write your own GUI to change the fields in contacts.

  • BlackBerry smartphone how to create a dialog box with edit controls

    Hi guys,.

    I am trying to create a dialog box that has a couple of input fields - one is a selection list (drop-down list), and the other is a text box. I know the custom dialog boxes can be created, but I'm not sure that it is possible to add several input fields. Is this correct?

    In this case, what alternatives can I?

    My main goal is to have a sort of modal popup / dialog box that can be used on different platforms to BB, without having to manually set the Properties screen for each layout.

    Thanks in advance.

    OK, I was able to find a solution with the help of a subclass of the screen. I would like to know if there is a better sense, though. If anyone knows, please post a reply.

    Here are a few good resources:

    Creating a context menu

    Creating a drop-down list

    And here is an excerpt:

  • Dynamic buffers / Dialog Box with the context Menu (or list box)

    Hi people,

    I did experiment with stamps dynaimc for awhile and I got pretty far with this topic. I can not make it work are the context menus (or list boxes) in dialog boxes. The context menu is displayed correctly in the dialog box, but there is no content even though its meaning. The javascript of the definition of content looks like:

    It corresponds to a group of Popup in the PDF file named 'Test '.

    popupGroup: 'Test ',.

    listItems:

    [

    {popupItems:}

    {

    The list of items of the context menu, positive number indicates the default selection

    'Test 1': + 1,.

    'Test 2':-1.

    'Test 3':-1.

    "Test 4":-1,.

    'Test 5':-1

    }

    }

    ]

    You have no idea what's wrong with the code above?

    I did a quick check of your code, and there is a problem with an exception that is thrown in this line: return Collab.user;

    If you take this point, the code works correctly. Why do you use the Collab object?

  • interaction of the modal dialog box with master apex 5

    Hello

    Apex 4.2 that my links has been built with sql only for the specified lines, links point to event opening the modal dialog box.

    Can you tell me how should I format link to open the modal dialog box for interactive report?

    Hi jareeq,

    jareeq wrote:

    Apex 4.2 that my links has been built with sql only for the specified lines, links point to event opening the modal dialog box.

    Can you tell me how should I format link to open the modal dialog box for interactive report?

    Please see the example of a modal dialog box of region in sample dialogue is available in packaged Application.

    This will give you an idea how to call a modal dialog box for interactive report link.

    or better create sample on apex.oracle.com which will be easier for users to give you the appropriate solution.

    Kind regards

    Jitendra

  • How can I open the "Convert to indexed colors" dialog box with custom presets?

    Hello

    I need to automatically open the "Convert to indexed colors" dialog box in Photoshop. Before and after that I have a few scripts that are running, so it is not possible to open the dialog manually. Also, I want to put some custom presets (like the number of colors, etc.).

    Find something similar to what I want for the color range selection (opens the dialog with the presets you put in that):

    function colorrange(enabled, withDialog, fuzziness) {
        if (enabled != undefined && !enabled)
          return;
        var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);
        var desc1 = new ActionDescriptor();
        desc1.putInteger(app.charIDToTypeID('Fzns'),fuzziness);
        var desc2 = new ActionDescriptor();
        desc2.putDouble(app.charIDToTypeID('Lmnc'), 31.22);
        desc2.putDouble(app.stringIDToTypeID("a"), 0.86);
        desc2.putDouble(app.stringIDToTypeID("b"), 0.31);
        desc1.putObject(app.charIDToTypeID('Mnm '), app.charIDToTypeID('LbCl'), desc2);
        var desc3 = new ActionDescriptor();
        desc3.putDouble(app.charIDToTypeID('Lmnc'), 95.34);
        desc3.putDouble(app.stringIDToTypeID("a"), 54.59);
        desc3.putDouble(app.stringIDToTypeID("b"), 49.85);
        desc1.putObject(app.charIDToTypeID('Mxm '), app.charIDToTypeID('LbCl'), desc3);
        desc1.putInteger(app.stringIDToTypeID("colorModel"), 0);
        var desc4 = new ActionDescriptor();
        var desc4 = executeAction(app.stringIDToTypeID('colorRange'), desc1, dialogMode);
      };
    

    How can I get the same thing for the indexed color conversion dialog box? Apart from doing a lot of guessing about the stringIDs.

    Is there some kind of "table of choice" for char and string ID?

    Guys thank you very much in advance! This forum has been a great help on several occasions.

    OK never mind I got it, stupid me.

    He has recorded with Listener Script and changed the "DialogMode" parameter of the function of executeAction "DialogModes.No" at "DialogModes.All".

    var idCnvM = charIDToTypeID( "CnvM" );
                var desc249 = new ActionDescriptor();
                var idT = charIDToTypeID( "T  " );
                    var desc250 = new ActionDescriptor();
                    var idPlt = charIDToTypeID( "Plt " );
                    var idClrP = charIDToTypeID( "ClrP" );
                    var idSele = charIDToTypeID( "Sele" );
                    desc250.putEnumerated( idPlt, idClrP, idSele );
                    var idClrs = charIDToTypeID( "Clrs" );
                    desc250.putInteger( idClrs, 4 );
                    var idFrcC = charIDToTypeID( "FrcC" );
                    var idFrcC = charIDToTypeID( "FrcC" );
                    var idNone = charIDToTypeID( "None" );
                    desc250.putEnumerated( idFrcC, idFrcC, idNone );
                    var idTrns = charIDToTypeID( "Trns" );
                    desc250.putBoolean( idTrns, false );
                    var idDthr = charIDToTypeID( "Dthr" );
                    var idDthr = charIDToTypeID( "Dthr" );
                    var idDfsn = charIDToTypeID( "Dfsn" );
                    desc250.putEnumerated( idDthr, idDthr, idDfsn );
                    var idDthA = charIDToTypeID( "DthA" );
                    desc250.putInteger( idDthA, 75 );
                var idIndC = charIDToTypeID( "IndC" );
                desc249.putObject( idT, idIndC, desc250 );
            executeAction( idCnvM, desc249, DialogModes.ALL ); //Change from NO to ALL
    
  • initialize the dialog box with img

    Hello

    I want to import img in a dialog box, as described here: Images in Acrobat JavaScript dialog part 2 additional prepress

    I import my icon on the other side and it is loaded, as the button appears with this icon. The iconToHex.pdf has two images assigned to the fields: Button1 and img2.  Button1 icon is imported to the button "Smile" and the other "img2" icon I try to import in the dialog box, but it does not work . The dialog with two buttons: 'Close' and 'Wink' and under the buttons is a warning: JavaScript window. I tried different icons for "img2" sizes: 20 x 20 and 200 x 200 so, it doesn't work. Could you help me please to get the icon in the dialog box.

    var importImg = {app.trustedFunction (function (targetImg)}

    try {}

    shortPath var = "/ Macintosh HD/users/tmpAcrobat / ';

    app.beginPriv ();

    var doc = app.openDoc({)

    cPath: shortPath + "iconToHex.pdf."

    acachees: true

    });

    app.endPriv ();

    } catch (e) {}

    Console.println ("could not open the file of the icon:" + e);

    return;

    }

    var myIcon = doc.getField (targetImg) .buttonGetIcon ();

    var streamIcon = util.iconStreamFromIcon (myIcon);

    Return streamIcon;

    });

    IMPORT IMAGES:

    var oIcon = importImg ("Button1");

    var oSmile = importImg ("img2");

    var oWink = importImg ("img2");

    app.addToolButton({)

    cName: "btnDialog."

    cEnable: true,

    oIcon: oIcon,.

    cExec: "app.execDialog (myDialog)."

    cLabel: "Smile."

    cTooltext: "cTooltextSmile1."

    NPO:-1

    });

    var myDialog = {}

    Load the original image

    initialize: {function (dialog)}

    This.t = 1; State of the image value

    Dialog.Load ({}

    img1: oSmile,.

    });

    },

    called when you press the "wink"

    Tunb: {function (dialog)}

    If (this.t == 0) {}

    Dialog.Load ({}

    img1: oSmile,.

    Tunb: "wink"

    });

    } else {}

    Dialog.Load ({}

    img1: oWink,.

    Tunb: "Smile".

    });

    }

    the image swapping state value

    This.t = (this.t - 1) *-1;

    },

    called when Cancel button pressed

    closed: {function (dialog)}

    Dialog.end ("Cancel")

    },

    Describes an aspect of the dialog box

    Description: {}

    name: 'Smile', / / title of the dialog box

    items: [{}

    type: 'image', / / type of the element

    height: 200, / / height of the element in pixels

    Width: 200, / / width of the element in pixels

    item_id: "img1" / / year ItemID of this element

    }, {

    type: "display."

    align_children: "align_row."

    items: [{}

    Close button

    type: 'button ',.

    item_id: "closed."

    name: "close".

    }, {

    image selector button

    item_id: "Tomb."

    type: 'button ',.

    name: "wink."

    }]

    }]

    }

    };

    Kind regards

    Alex

    There is a bug in this version of Acrobat (and perhaps the reader as well). It will not display the images in a dialog object.

  • How to create modal dialog box with image

    I have this very simple modal dialog box:
    public class DialogPanels
    {
    
        public void initClosemainAppDialog(final Stage primaryStage)
        {
    
            primaryStage.setOnCloseRequest(new EventHandler<WindowEvent>()
            {
                @Override
                public void handle(WindowEvent event)
                {
                    event.consume(); // Do nothing on close request
    
                    // Dialog Stage init
                    final Stage dialog = new Stage();
                    // If you want to freeze the background during dialog appearence set Modality.APPLICATION_MODAL
                    // or to allow clicking on the mainstage components set Modality.NONE
                    // and set dialog.showAndWait();
                    dialog.initModality(Modality.APPLICATION_MODAL);
                    dialog.initOwner(primaryStage);
    
                    // Frage - Label
                    Label label = new Label("Exit from the program");
    
                    // Button "Yes"
                    Button okBtn = new Button("Yes");
                    okBtn.setOnAction(new EventHandler<ActionEvent>()
                    {
                        @Override
                        public void handle(ActionEvent event)
                        {
                            //primaryStage.close();
                            //dialog.close();
                            //Platform.exit();    
                            System.exit(0);
                        }
                    });
    
                    // Button "No"
                    Button cancelBtn = new Button("No");
                    cancelBtn.setOnAction(new EventHandler<ActionEvent>()
                    {
                        @Override
                        public void handle(ActionEvent event)
                        {
                            primaryStage.show();
                            dialog.close();
                        }
                    });
    
                    // Layout for the Button
                    HBox hbox = new HBox();
                    hbox.setSpacing(10);
                    hbox.setAlignment(Pos.CENTER);
                    hbox.getChildren().add(okBtn);
                    hbox.getChildren().add(cancelBtn);
    
                    // Layout for the Label and hBox
                    VBox vbox = new VBox();
                    vbox.setAlignment(Pos.CENTER);
                    vbox.setSpacing(10);
                    vbox.getChildren().add(label);
                    vbox.getChildren().add(hbox);
    
                    // Stage
                    Scene scene = new Scene(vbox, 450, 150, Color.WHITESMOKE);
                    dialog.setScene(scene);
                    dialog.show();
                }
            });
    
        }
    }
    I want to add images and make to look like this:



    But I admin that it's too complex for my short knowledge get the appropriate result. Can you show me how I can split dialog box, add second bottom and make my code to look the same as this example please?

    I think that you can accomplish what you want by wrapping your 'vbox' VBox in an another VBox... Let's call it outerVBox. In outerVBox, you put a node ImageView and 'vbox'. To create the node ImageView (for example):

    Image bkgrdImage = new Image(getClass().getResourceAsStream("resources/my_pic.jpg"));
    ImageView bkgrdImageView = new ImageView(bkgrdImage);
    

    And then add nodes to outerVBox:

    outerVBox.getChildren().addAll(bkgrdImageView, vbox);
    

    (And of course to create the scene instance using outerVBox instead of "vbox.")

  • Print of InDesign dialog box with an OK button

    This excists in Illustrator as a button is next to the impression, it records all changes that you made in the print dialog box.

    Is it already possible to do this in Indesign. If this is not the case, a button in Indesign would be really convenient!

    I agree it would be nice. I would use it myself.

    I'd rather see the 'save settings' button instead of 'fact' what you do isn't really clear.

    You can send via official channels: Adobe - feature request/Bug Report Form

Maybe you are looking for