diff options
Diffstat (limited to 'NxWidgets/libnxwidgets/src/cbuttonarray.cxx')
-rw-r--r-- | NxWidgets/libnxwidgets/src/cbuttonarray.cxx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/NxWidgets/libnxwidgets/src/cbuttonarray.cxx b/NxWidgets/libnxwidgets/src/cbuttonarray.cxx index 263a16ce4..642a0a562 100644 --- a/NxWidgets/libnxwidgets/src/cbuttonarray.cxx +++ b/NxWidgets/libnxwidgets/src/cbuttonarray.cxx @@ -546,16 +546,26 @@ void CButtonArray::onClick(nxgl_coord_t x, nxgl_coord_t y) } /** - * Raises an action event and redraws the button. + * Raises an action. * * @param x The x coordinate of the mouse. * @param y The y coordinate of the mouse. */ -void CButtonArray::onRelease(nxgl_coord_t x, nxgl_coord_t y) +void CButtonArray::onPreRelease(nxgl_coord_t x, nxgl_coord_t y) { m_widgetEventHandlers->raiseActionEvent(); +} +/** + * Redraws the button. + * + * @param x The x coordinate of the mouse. + * @param y The y coordinate of the mouse. + */ + +void CButtonArray::onRelease(nxgl_coord_t x, nxgl_coord_t y) +{ // Redraw only the button that was released m_redrawButton = true; |