#14709: Prevent hilighting and sending event for disabled wxRibbonButtonBar buttons

1 view
Skip to first unread message

wxTrac

unread,
Sep 28, 2012, 4:42:17 AM9/28/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14709>

#14709: Prevent hilighting and sending event for disabled wxRibbonButtonBar buttons
-------------------------------+--------------------------------------------
Reporter: EmilienKia | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: GUI-generic | Version: 2.9-svn
Keywords: wxRibbonButtonBar | Blockedby:
Patch: 1 | Blocking:
-------------------------------+--------------------------------------------
Disabled wxRibbonButtonBar buttons can be hilighted when the cursor moves
over them and event are sent when the mouse button is pressed.

This patch fix that (and add few lines in sample to test it) to make the
behavior natural and in line with wxRibbonToolBar.

Regards,

Emilien


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14709>

wxTrac

unread,
Sep 28, 2012, 7:49:22 PM9/28/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14709#comment:1>

#14709: Prevent hilighting and sending event for disabled wxRibbonButtonBar buttons
--------------------------+-------------------------------------------------
Reporter: EmilienKia | Owner:
Type: defect | Status: closed
Priority: normal | Milestone:
Component: GUI-generic | Version: 2.9-svn
Resolution: fixed | Keywords: wxRibbonButtonBar
Blockedby: | Patch: 1
Blocking: |
--------------------------+-------------------------------------------------
Changes (by VZ):

* status: new => closed
* resolution: => fixed


Comment:

(In [72574]) Don't send events for disabled ribbon bar buttons.

Hover and activation events were sent even for the disabled buttons which
was
unexpected and inconsistent with wxRibbonToolBar, so don't do it.

Closes #14709.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14709#comment:1>
Reply all
Reply to author
Forward
0 new messages