Implement (or reimplement) class `wxMetafileDataObject` (Issue #25861)

10 views
Skip to first unread message

Luca Allulli

unread,
Oct 5, 2025, 12:44:39 PM (17 hours ago) Oct 5
to wx-...@googlegroups.com, Subscribed
lallulli created an issue (wxWidgets/wxWidgets#25861)

In order to support clipboard and drag-and-drop operations involving Windows Metafiles alongside other formats (bitmaps, text, etc.), it would be very useful to have a wxMetafileDataObject class.

Such a class would make it possible to combine different formats within a single wxDataObjectComposite instance.

While searching for wxMetafileDataObject, I found references to it in Cross-Platform GUI Programming with wxWidgets by Julian Smart and Kevin Hock, which suggests that this class may have existed in earlier versions. If that’s the case, I’m not sure why it was removed.

Thank you for considering this!


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25861@github.com>

VZ

unread,
Oct 5, 2025, 1:08:56 PM (17 hours ago) Oct 5
to wx-...@googlegroups.com, Subscribed

Closed #25861 as completed.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issue/25861/issue_event/20102358347@github.com>

VZ

unread,
Oct 5, 2025, 1:08:57 PM (17 hours ago) Oct 5
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#25861)

It hasn't been removed, but it's only available under Windows, in wx/msw/metafile.h header.

I don't think it makes sense to implement it for the other platforms as it's inherently Windows-specific, so I don't think we can/should do anything else here.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25861/3369190608@github.com>

Luca Allulli

unread,
Oct 5, 2025, 1:28:27 PM (16 hours ago) Oct 5
to wx-...@googlegroups.com, Subscribed
lallulli left a comment (wxWidgets/wxWidgets#25861)

Oh I see, that's good to know! Thanks!

I would suggest adding this class to the official documentation: it doesn't appear either the class index or in the wxDataObject class hierarchy.

I'll try it in wxPython under Windows. It’s a bit odd that wx.MetafileDC is well documented and importable even on Linux, while wxMetafileDataObject seems somewhat hidden.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25861/3369202200@github.com>

Luca Allulli

unread,
Oct 5, 2025, 1:38:36 PM (16 hours ago) Oct 5
to wx-...@googlegroups.com, Subscribed
lallulli left a comment (wxWidgets/wxWidgets#25861)

No, the class doesn't appear to exist in wxPython, not even under wx.msw where I can find MetafileDC (now deprecated and moved to wx)...


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25861/3369208423@github.com>

Scott Talbert

unread,
Oct 5, 2025, 1:50:10 PM (16 hours ago) Oct 5
to wx-...@googlegroups.com, Subscribed
swt2c left a comment (wxWidgets/wxWidgets#25861)

wxPython uses the wxWidgets interface headers (the files under the interface) directory in order to decide what classes and methods to make available to Python. This class isn't currently documented in the interface headers. @vadz should this class be documented?


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25861/3369215335@github.com>

VZ

unread,
Oct 5, 2025, 1:53:04 PM (16 hours ago) Oct 5
to wx-...@googlegroups.com, Subscribed

Reopened #25861.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issue/25861/issue_event/20102514343@github.com>

VZ

unread,
Oct 5, 2025, 1:53:24 PM (16 hours ago) Oct 5
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#25861)

Yes, I don't see why it shouldn't (unless it doesn't work? to be honest I've never used it in my life).


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25861/3369217225@github.com>

Reply all
Reply to author
Forward
0 new messages