cloud-control-panel/gui-debug.go

35 lines
1.0 KiB
Go
Raw Normal View History

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")
box := gui.HardBox(gw, gui.Yaxis, "debugClick")
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)
box = gui.HardBox(gw, gui.Xaxis, "subdomain test")
makeButton(box, nil, nil, "Generate 1", "SUBDOMAIN", nil)
makeButton(box, nil, nil, "Generate 2", "SUBDOMAIN", nil)
makeButton(box, nil, nil, "Generate 3", "SUBDOMAIN", func (*gui.GuiButton) {
log.Println("debugClick() Generate 3")
})
log.Println("debugClick() END box =", box)
}