summaryrefslogtreecommitdiff
path: root/area.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-06-03 12:56:33 -0700
committerJeff Carr <[email protected]>2019-06-03 12:56:33 -0700
commit3a94b27b6308b41f54753b5ae0e38ed97837e440 (patch)
tree8e9c25b7b41171484aa6b51af4bc87f3f0ea645d /area.go
parentcc9edaab3a6d7594fac6ce082b3b2feed2114ced (diff)
better display and debugging
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'area.go')
-rw-r--r--area.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/area.go b/area.go
index 732b241..3c41f62 100644
--- a/area.go
+++ b/area.go
@@ -107,7 +107,7 @@ func (ah GuiArea) KeyEvent(a *ui.Area, ke *ui.AreaKeyEvent) (handled bool) {
return false
}
-func ShowTextBox(gw *GuiWindow, newText *ui.AttributedString, custom func(*GuiButton)) *GuiBox {
+func ShowTextBox(gw *GuiWindow, newText *ui.AttributedString, custom func(*GuiButton), name string) *GuiBox {
log.Println("ShowTextBox() START")
if (gw == nil) {
log.Println("ShowTextBox() ERROR gw = nil")
@@ -118,7 +118,7 @@ func ShowTextBox(gw *GuiWindow, newText *ui.AttributedString, custom func(*GuiBu
var newbox *GuiBox
newbox = new(GuiBox)
newbox.Window = gw
- newbox.Name = "Hbox1"
+ newbox.Name = name
hbox := ui.NewVerticalBox()
newbox.UiBox = hbox