expand the text boxes
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
b1b0378780
commit
6ebdbf2593
6
entry.go
6
entry.go
|
@ -69,16 +69,14 @@ func MakeEntryVbox(box *GuiBox, a string, startValue string, edit bool, action s
|
||||||
}
|
}
|
||||||
|
|
||||||
func MakeEntryHbox(box *GuiBox, a string, startValue string, edit bool, action string) *GuiEntry {
|
func MakeEntryHbox(box *GuiBox, a string, startValue string, edit bool, action string) *GuiEntry {
|
||||||
// Start 'Nickname' vertical box
|
|
||||||
hboxN := ui.NewHorizontalBox()
|
hboxN := ui.NewHorizontalBox()
|
||||||
hboxN.SetPadded(true)
|
hboxN.SetPadded(true)
|
||||||
hboxN.Append(ui.NewLabel(a), false)
|
hboxN.Append(ui.NewLabel(a), false)
|
||||||
|
|
||||||
e := defaultMakeEntry(startValue, edit, action)
|
e := defaultMakeEntry(startValue, edit, action)
|
||||||
hboxN.Append(e.UiEntry, false)
|
hboxN.Append(e.UiEntry, true)
|
||||||
|
|
||||||
box.UiBox.Append(hboxN, false)
|
box.UiBox.Append(hboxN, true)
|
||||||
// End 'Nickname' vertical box
|
|
||||||
|
|
||||||
return e
|
return e
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue