blob: 144c2c1c995a304081a3c08f641056986ef05a85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
package main
import (
"github.com/andlabs/ui"
_ "github.com/andlabs/ui/winmanifest"
"git.wit.org/wit/gui/toolkit"
)
func newLabel(a *toolkit.Action) {
var newt *andlabsT
w := a.Widget
log(debugToolkit, "NewLabel()", w.Name)
t := mapToolkits[a.Where]
if (t == nil) {
listMap(debugError)
log(debugError, "ERROR newLabel() listMap()")
log(debugError, "ERROR FFFFFFFFFFFF listMap()")
log(debugError, "ERROR FFFFFFFFFFFF listMap()")
return
}
log(debugToolkit, "NewLabel()", w.Name)
newt = new(andlabsT)
c := ui.NewLabel(w.Name)
newt.uiLabel = c
newt.uiControl = c
place(a, t, newt)
mapWidgetsToolkits(a, newt)
}
|