summaryrefslogtreecommitdiff
path: root/area.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-06-03 17:10:50 -0700
committerJeff Carr <[email protected]>2019-06-03 17:10:50 -0700
commitc18bfd884be56f7957869dfb5e6daeddd4985244 (patch)
tree6a33e2f42eb57dc99118f3a7671cbae8ebccad0c /area.go
parent015d6a25ec8429f6a1ff6f7aee58f7d5cf0c0280 (diff)
parent70779ab33b662d3e7849133f57521c2ce217bf96 (diff)
Merge branch 'master' into devel
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