Mercurial > godwindows
changeset 112:2307b192b129
Add button mask to the status text on the render tab.
author | Brian Smith <brian@dbsoft.org> |
---|---|
date | Fri, 12 Nov 2021 03:19:23 -0600 |
parents | a01a9f21ed83 |
children | 6655d9263fd5 |
files | dwootest/dwootest.go dwtest/dwtest.go |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/dwootest/dwootest.go Fri Nov 12 03:09:46 2021 -0600 +++ b/dwootest/dwootest.go Fri Nov 12 03:19:23 2021 -0600 @@ -932,11 +932,11 @@ return dw.TRUE }) textbox2.ConnectMotion(func(window dw.HRENDER, x int, y int, buttonmask int) int { - status2.SetText(fmt.Sprintf("motion_notify: %dx%d", x, y)) + status2.SetText(fmt.Sprintf("motion_notify: %dx%d buttons %d", x, y, buttonmask)) return dw.FALSE }) textbox2.ConnectButtonPress(func(window dw.HRENDER, x int, y int, buttonmask int) int { - status2.SetText(fmt.Sprintf("button_press: %dx%d", x, y)) + status2.SetText(fmt.Sprintf("button_press: %dx%d buttons %d", x, y, buttonmask)) return dw.FALSE }) hscrollbar.ConnectValueChanged(func(hwnd dw.HSCROLLBAR, value int) int {
--- a/dwtest/dwtest.go Fri Nov 12 03:09:46 2021 -0600 +++ b/dwtest/dwtest.go Fri Nov 12 03:19:23 2021 -0600 @@ -285,7 +285,7 @@ if uintptr(data) > 0 { which = "motion_notify" } - dw.Window_set_text(status2, fmt.Sprintf("%s: %dx%d", which, x, y)) + dw.Window_set_text(status2, fmt.Sprintf("%s: %dx%d buttons %d", which, x, y, buttonmask)) return FALSE }