How would you go about having a + button add a new textbox in to the gui?
The reason for this is because I want the end user to be able to put in additional field(s) if it's needed.
Also say if this is possible, could it also automatically extend the gui window - or scrollable - in case the end user needs to add in a lot?
Get help with using AutoHotkey and its commands and hotkeys
2 posts • Page 1 of 1
I assume by text box you mean an edit box. Here's a basic approach to it. Making it scrollable is more advanced. There have been various threads about it on the forum that you should be able to find.
Code: Select all
EditCount := 1 gosub, BuildGui return GuiClose: ExitApp AddEdit: EditCount++ gosub, BuildGui return BuildGui: Gui, Destroy loop, %EditCount% Gui, Add, Edit, w200 vEdit%A_Index% Gui, Add, Button, gAddEdit w200, + Gui, Show return