Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #30357
    Stefan
    Participant

    As addition to the build-in MsgBox / Inputbox- features of the script languages,

    I want to suggest to add a option to EmEditor for to create dialogs for user input.

    Like:
    CreateGui: x100, y120, h400, w850
    GuiTitle = “my great tool”
    AddText = “my description”
    AddEdit vPrefix
    AddEdit vSuffix
    AddText = “Empty Lines too?”
    AddCheckbox vCB1

    Used in script:
    alert(vPrefix);
    alert(vSuffix);
    if(vCB1){alert(“In Empty Lines Too”)};
    —-
    ——-
    .

    #30359
    Yutaka Emura
    Keymaster

    There’s already a similar feature available: the MsgBox method of the PopupMenu object:

    https://www.emeditor.org/en/macro/popupmenu/msgbox.html

    Would this work for your needs?

    #30374
    Stefan
    Participant

    Thanks for the answer. That’s a good start.

    How can I add two edit boxes to that dialog?

    menu = CreatePopupMenu();
    menu.Add( "Button 1", 1);
    menu.Add( "Button 2", 2);
    menu.AddEdit("do it". vDoIt)
    result = menu.MsgBox( "Header", "Body", );
    if(vDoIt){ ..... }

     
     
    Thanks

    #30378
    Yutaka Emura
    Keymaster

    You can’t add edit boxes to the dialog right now, but I’ll consider adding this feature in future versions.

    #30379
    David
    Participant

    This will provide more possibilities, which I think will be very helpful to me

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.