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 /splash.go | |
| parent | 4f08c8f1cea5103c9713d2374d3e266025208893 (diff) | |
more standard button handling
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'splash.go')
| -rw-r--r-- | splash.go | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -10,12 +10,12 @@ import "runtime" import "github.com/andlabs/ui" import _ "github.com/andlabs/ui/winmanifest" -func ShowSplashBox(vbox *ui.Box, atest chan int, custom func(*ButtonMap)) *ui.Box { +func ShowSplashBox() *ui.Box { newbox := ui.NewVerticalBox() newbox.SetPadded(true) makeAttributedString() - Data.MyArea = makeSplashArea(custom) + Data.MyArea = makeSplashArea() newbox.Append(Data.MyArea, true) @@ -45,12 +45,8 @@ func ShowSplashBox(vbox *ui.Box, atest chan int, custom func(*ButtonMap)) *ui.Bo } } - okButton := CreateButton(nil, nil, "OK", "DONE", custom) + okButton := CreateButton(nil, nil, "OK", "DONE", mouseClick) newbox.Append(okButton, false) - if (vbox != nil) { - vbox.Append(newbox, true) - } - return newbox } |
