Ticket #14748 (closed enhancement: fixed)

Opened 7 months ago

Last modified 7 months ago

Add accessor for the user supplied data to the event handler callback

Reported by: oneeyeman Owned by:
Priority: low Milestone:
Component: GUI-all Version: 2.9-svn
Keywords: event userobject simple Cc:
Blocked By: Patch: yes
Blocking:

Description

As summary states.
When event handler connects user can supply a data object to the handler.

The patch includes documentation.

Tested with MSVC 2010.

Attachments

eventuserdata.patch download (1.3 KB) - added by oneeyeman 7 months ago.
Patch file
14748.patch download (1.3 KB) - added by oneeyeman 7 months ago.
Patch

Change History

Changed 7 months ago by oneeyeman

Patch file

Changed 7 months ago by vadz

  • priority changed from normal to low
  • status changed from new to confirmed
  • summary changed from Retrieve user supplied data to the event handler callback to Add accessor for the user supplied data to the event handler callback
  • milestone deleted

Could you please make the method "const" (it doesn't change the event after all) and also make sure the patch can actually be applied (being able to view it in Trac web UI after uploading is a good test)? I don't know what's wrong with it exactly but it seems to have been corrupted, notably some lines were wrapped.

Changed 7 months ago by oneeyeman

Patch

Changed 7 months ago by oneeyeman

OK, new patch attached.

Changed 7 months ago by VZ

  • status changed from confirmed to closed
  • resolution set to fixed

(In [72693]) Add wxEvent::GetEventUserData() and improve user data documentation.

Provide a public and documented accessor for wxEvent::m_callbackUserData.

Also document better the user data semantics and how it can be used.

Closes #14748.

Note: See TracTickets for help on using tickets.