diff options
| author | Jeff Carr <[email protected]> | 2019-05-26 12:05:23 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-26 12:05:23 -0700 |
| commit | 1fbb0cd227987b1b7758c19452ce97338041c302 (patch) | |
| tree | d63ce02697c5d8975a3140532a7796d924baf318 /area.go | |
| parent | 4f08c8f1cea5103c9713d2374d3e266025208893 (diff) | |
more standard button handling
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'area.go')
| -rw-r--r-- | area.go | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -7,10 +7,10 @@ import _ "github.com/andlabs/ui/winmanifest" import "github.com/davecgh/go-spew/spew" -func makeSplashArea(custom func(*ButtonMap)) *ui.Area { +func makeSplashArea() *ui.Area { // make this button just to get the default font (but don't display the button) // There should be another way to do this (?) - Data.fontButton = CreateFontButton("SplashFont", "DONE", custom) + Data.fontButton = CreateFontButton("SplashFont", "DONE", mouseClick) makeAttributedString() splashArea := ui.NewArea(myAH) @@ -19,7 +19,6 @@ func makeSplashArea(custom func(*ButtonMap)) *ui.Area { var newmap ButtonMap newmap.Action = "AREA" newmap.A = splashArea - newmap.custom = custom myAH.button = &newmap Data.AllButtons = append(Data.AllButtons, newmap) |
