- AuthorPosts
- August 9, 2025 at 2:14 pm #30357
Stefan
ParticipantAs 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 vCB1Used in script:
alert(vPrefix);
alert(vSuffix);
if(vCB1){alert(“In Empty Lines Too”)};
—-
——-
.August 10, 2025 at 9:05 am #30359Yutaka Emura
KeymasterThere’s already a similar feature available: the
MsgBox
method of thePopupMenu
object:https://www.emeditor.org/en/macro/popupmenu/msgbox.html
Would this work for your needs?
August 12, 2025 at 4:01 am #30374Stefan
ParticipantThanks 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){ ..... }
ThanksAugust 12, 2025 at 3:55 pm #30378Yutaka Emura
KeymasterYou can’t add edit boxes to the dialog right now, but I’ll consider adding this feature in future versions.
August 12, 2025 at 4:35 pm #30379David
ParticipantThis will provide more possibilities, which I think will be very helpful to me
- AuthorPosts
- You must be logged in to reply to this topic.