diff --git a/Makefile b/Makefile index e35fc5f..9286f5d 100644 --- a/Makefile +++ b/Makefile @@ -24,9 +24,11 @@ build: cd example-ui-controlgallery; go install # an example GUI with drop down menus, etc cd example-ui-radiobutton; go install # slidebars, lists, radio buttons cd example-ui-table; go install # spreadsheet + cd example-ui-show-hide; go install # toggle hide, show # misc cd example-lookupAAAA; go install # nslookup + cd example-json-decode; go install # raw golang byte handling # golang things cd example-pprof; go install # dump out go process internals diff --git a/test5/Makefile b/example-json-decode/Makefile similarity index 100% rename from test5/Makefile rename to example-json-decode/Makefile diff --git a/test5/main.go b/example-json-decode/main.go similarity index 100% rename from test5/main.go rename to example-json-decode/main.go diff --git a/test1/Makefile b/example-ui-show-hide/Makefile similarity index 100% rename from test1/Makefile rename to example-ui-show-hide/Makefile diff --git a/test1/README.md b/example-ui-show-hide/README.md similarity index 100% rename from test1/README.md rename to example-ui-show-hide/README.md diff --git a/test1/crash1 b/example-ui-show-hide/crash1 similarity index 100% rename from test1/crash1 rename to example-ui-show-hide/crash1 diff --git a/test1/main.go b/example-ui-show-hide/main.go similarity index 100% rename from test1/main.go rename to example-ui-show-hide/main.go diff --git a/test1/main b/test1/main deleted file mode 100755 index b13c8d8..0000000 Binary files a/test1/main and /dev/null differ diff --git a/test3/Makefile b/test3/Makefile deleted file mode 100644 index dae14ea..0000000 --- a/test3/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -run: - go build - ./test3 diff --git a/test3/main.go b/test3/main.go deleted file mode 100644 index 00c9f7a..0000000 --- a/test3/main.go +++ /dev/null @@ -1,32 +0,0 @@ -package main - -import "log" -import "os" - -import "github.com/andlabs/ui" -import _ "github.com/andlabs/ui/winmanifest" - -import "git.wit.org/wit/gui" - -func TestAttributedString() *ui.AttributedString { - newText := ui.NewAttributedString("") - - gui.AreaAppendText(newText, "Welcome to the Cloud Control Panel\n", ui.TextSize(16), ui.TextColor{0.0, 0.0, 0.8, .8}) // "RGBT" - return newText -} - -func main() { - // THIS CRASHES IF YOU RUN IT HERE - // text := TestAttributedString() - // log.Println("text =", text) - - ui.Main(setupUI) -} - -func setupUI() { - // this doesn't crash here - text := TestAttributedString() - log.Println("text =", text) - - os.Exit(0) -}