Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#11692 closed enhancement (fixed)

wxDataObjectComposite and protected method GetObject(wxDataFormat const&)

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

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

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

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by hartwigw

comment:1 Changed 5 years ago by VZ

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

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

comment:2 Changed 5 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.