예제 #1
0
func (c *controlSingleHWNDWithText) setText(text string) {
	t := toUTF16(text)
	C.setWindowText(c.hwnd, t)
	c.textlen = C.controlTextLength(c.hwnd, t)
}
예제 #2
0
func (w *window) SetTitle(title string) {
	C.setWindowText(w.hwnd, toUTF16(title))
}
예제 #3
0
파일: area_windows.go 프로젝트: sjn1978/ui
func (a *area) SetTextFieldText(text string) {
	t := toUTF16(text)
	C.setWindowText(a.textfield, t)
}
예제 #4
0
func baseSetText(c textableControl, text string) {
	hwnd := c.hwnd()
	t := toUTF16(text)
	C.setWindowText(hwnd, t)
	c.settextlen(C.controlTextLength(hwnd, t))
}