#14748 closed enhancement (fixed)

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

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

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 (2)

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

Download all attachments as: .zip

Change History (5)

Changed 23 months ago by oneeyeman

Patch file

comment:1 Changed 23 months ago by vadz

  • Milestone 2.9.5 deleted
  • 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

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 23 months ago by oneeyeman

Patch

comment:2 Changed 23 months ago by oneeyeman

OK, new patch attached.

comment:3 Changed 23 months ago by VZ

  • Resolution set to fixed
  • Status changed from confirmed to closed

(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.