Ticket #11692 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

wxDataObjectComposite and protected method GetObject(wxDataFormat const&)

Reported by: hartwigw Owned by:
Priority: normal Milestone: 2.9.1
Component: GUI-generic Version: 2.9-svn
Keywords: wxDataObjectComposite GetObject public Cc:
Blocked By: Patch: yes
Blocking:

Description

wxDataObjectComposite's GetObject method should be made public. This allows the use of simple data object's methods.

Code and documentation patch appended

Attachments

Dataobject_04.patch download (3.7 KB) - added by hartwigw 3 years ago.

Change History

Changed 3 years ago by hartwigw

Changed 3 years ago by VZ

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

(In [63381]) Make wxDataObjectComposite::GetObject() public.

Allow retrieving individual wxDataObjects from wxDataObjectComposite and add
an example showing how can this be done to the documentation.

Closes #11692.

Changed 3 years ago by vadz

Thanks, I corrected the example somewhat as I don't think you can use wxDynamicCast with these classes (and it's unnecessary anyhow) and also to make it more wx-like (notably removed the unnecessary this-> and (void)).

Note: See TracTickets for help on using tickets.