2019-06-03 02:20:11 -05:00
|
|
|
package main
|
|
|
|
|
|
|
|
import "log"
|
|
|
|
|
|
|
|
import "git.wit.com/wit/gui"
|
|
|
|
|
|
|
|
// import "github.com/andlabs/ui"
|
|
|
|
// import _ "github.com/andlabs/ui/winmanifest"
|
|
|
|
|
|
|
|
// import pb "git.wit.com/wit/witProtobuf"
|
|
|
|
|
|
|
|
func debugClick(b *gui.GuiButton) {
|
|
|
|
log.Println("debugClick() START")
|
|
|
|
gw := b.Box.Window
|
|
|
|
|
|
|
|
// if there is not an account, then go to 'make account'
|
|
|
|
gw = gui.InitGuiWindow("debugClick() Box22", gw)
|
|
|
|
|
|
|
|
log.Println("debugClick() AddGenericBox() START")
|
2019-06-03 02:49:51 -05:00
|
|
|
box := gui.HardBox(gw, gui.Yaxis, "debugClick")
|
2019-06-03 02:20:11 -05:00
|
|
|
log.Println("debugClick() AddGenericBox() END box =", box)
|
|
|
|
|
|
|
|
makeButton(box, nil, nil, "Generate", "SUBDOMAIN", nil)
|
|
|
|
gui.HorizontalBreak(box)
|
|
|
|
makeButton(box, nil, nil, "Create Subdomain Account", "ADD", addSubdomainClick)
|
2019-06-03 02:49:51 -05:00
|
|
|
box = gui.HardBox(gw, gui.Xaxis, "subdomain test")
|
2019-06-03 02:20:11 -05:00
|
|
|
makeButton(box, nil, nil, "Generate 1", "SUBDOMAIN", nil)
|
|
|
|
makeButton(box, nil, nil, "Generate 2", "SUBDOMAIN", nil)
|
2019-06-03 02:49:51 -05:00
|
|
|
makeButton(box, nil, nil, "Generate 3", "SUBDOMAIN", func (*gui.GuiButton) {
|
|
|
|
log.Println("debugClick() Generate 3")
|
|
|
|
})
|
2019-06-03 02:20:11 -05:00
|
|
|
|
|
|
|
log.Println("debugClick() END box =", box)
|
|
|
|
}
|