[Mac, 2.8.1] Mac dragging cursor and icon

Stefan Csomor csomor at advancedconcepts.ch
Tue Jul 3 07:22:58 PDT 2007


Hi

ad 1)

yes, I'd add a bitmap member on a the drag source base class, with accessors, so any implementation is free to pick it

ad 2)

wxBitmap::CGImageCreate

Thanks,

Stefan

From: Yaron Tadmor [mailto:YaronT at HumanEyes.com]
Sent: Dienstag, 3. Juli 2007 16:28
To: wx-users at lists.wxwidgets.org
Subject: RE: [Mac, 2.8.1] Mac dragging cursor and icon

OK, I'll do it.
I just need a few pointers to make sure I do it right:

1)  can you explain what do you mean by generic API? Do I need to implement it (as doing nothing) for all other platforms, or is there another way. I'm not that familiar with these  things in WX.
2)  Do you have some code that turns a wxBitmap to a CGImage or something like that?



________________________________
From: Stefan Csomor [mailto:csomor at advancedconcepts.ch]
Sent: Tuesday, July 03, 2007 10:26 AM
To: wx-users at lists.wxwidgets.org
Subject: RE: [Mac, 2.8.1] Mac dragging cursor and icon

Hi Yaron

yes, that's fine, I'd prefer to have it as a generic API on the source, so that any platform that can, might implement it

Thanks,

Stefan

From: Yaron Tadmor [mailto:YaronT at HumanEyes.com]
Sent: Dienstag, 3. Juli 2007 10:30
To: wx-users at lists.wxwidgets.org
Subject: RE: [Mac, 2.8.1] Mac dragging cursor and icon

I'm not exactly what you mean by the GetSelectedContent function, but I can imagine the direction you're going in.

Until that is available, I'd like to add the ability to ad to a drag source an image to use (wxBitmap could do) I guess. Will that be OK? Should it be carbon only, or what?

________________________________
From: Stefan Csomor [mailto:csomor at advancedconcepts.ch]
Sent: Monday, July 02, 2007 6:38 PM
To: wx-users at lists.wxwidgets.org
Subject: RE: [Mac, 2.8.1] Mac dragging cursor and icon

Hi

my long time dream was to encapsulate a kind of GetSelectedContent on a wxWindow, like MacApp did, and use that for all data transfers be it pasteboard or drag/drop so this behavior would come from the right place. The drag region should show the outline of the selection or even the selection's bitmap being dragged. This unfortunately is not exposed AFAIK in our API, it could be something like a wxBitmap either upon a wxDropSource or upon a wxDataObject perhaps

Best,

Stefan

From: Yaron Tadmor [mailto:YaronT at HumanEyes.com]
Sent: Montag, 2. Juli 2007 18:42
To: wx-users at lists.wxwidgets.org
Subject: [Mac, 2.8.1] Mac dragging cursor and icon


Hi,

In the mac version of dnd.cpp, the code defines the drag region (which defines the drag image) as a simple rect of 10 pixels. It then also uses custom cursor as additional information.

This behavior is quite not mac-like. As ALL application which allow drag and drop, show some kind of an image to symbolize what is being dragged.

Is there any intention of changing this?

If not, does anyone mind if I go ahead and change it?

Thanx

Yaron Tadmor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20070703/2cdbe6d1/attachment.htm


More information about the wx-users mailing list