hopefully starting now it will be new features here
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
abd061ae58
commit
8fd3e719d9
2
debug.go
2
debug.go
|
@ -25,7 +25,7 @@ func WatchGUI() {
|
||||||
for name, abox := range window.BoxMap {
|
for name, abox := range window.BoxMap {
|
||||||
log.Printf("\twatchGUI() BOX mapname=%-12s abox.Name=%-12s", name, abox.Name)
|
log.Printf("\twatchGUI() BOX mapname=%-12s abox.Name=%-12s", name, abox.Name)
|
||||||
/*
|
/*
|
||||||
if (name == "SplashArea3") {
|
if (name == "DEBUG") {
|
||||||
log.Println("\t\twatchGUI() BOX abox =", reflect.TypeOf(abox))
|
log.Println("\t\twatchGUI() BOX abox =", reflect.TypeOf(abox))
|
||||||
win := abox.Window
|
win := abox.Window
|
||||||
log.Println("\t\twatchGUI() BOX win =", reflect.TypeOf(win))
|
log.Println("\t\twatchGUI() BOX win =", reflect.TypeOf(win))
|
||||||
|
|
4
entry.go
4
entry.go
|
@ -7,8 +7,6 @@ import "github.com/andlabs/ui"
|
||||||
import _ "github.com/andlabs/ui/winmanifest"
|
import _ "github.com/andlabs/ui/winmanifest"
|
||||||
import "github.com/davecgh/go-spew/spew"
|
import "github.com/davecgh/go-spew/spew"
|
||||||
|
|
||||||
// THIS IS CLEAN (except the 'Memory' normalization example)
|
|
||||||
|
|
||||||
// functions for handling text entry boxes
|
// functions for handling text entry boxes
|
||||||
|
|
||||||
func NewLabel(box *GuiBox, text string) {
|
func NewLabel(box *GuiBox, text string) {
|
||||||
|
@ -136,7 +134,7 @@ func defaultMakeEntry(startValue string, edit bool, action string) *GuiEntry {
|
||||||
newEntry.UiEntry = e
|
newEntry.UiEntry = e
|
||||||
newEntry.Edit = edit
|
newEntry.Edit = edit
|
||||||
newEntry.Action = action
|
newEntry.Action = action
|
||||||
if (action == "Memory") {
|
if (action == "INT") {
|
||||||
newEntry.Normalize = normalizeInt
|
newEntry.Normalize = normalizeInt
|
||||||
}
|
}
|
||||||
Data.AllEntries = append(Data.AllEntries, &newEntry)
|
Data.AllEntries = append(Data.AllEntries, &newEntry)
|
||||||
|
|
Loading…
Reference in New Issue