I was playing around with this a couple of days ago, and got to exactly this
point.
The next step was to capture the relevant portion of the TableViewHeader and
use it as the 'representation'.

Some people might want some transitions/animations when dragging columns
around, but IMHO a simple highlighted column, or even a thicker vertical
dividing line between the columns would be enough to start with.

Anyway, it looks like you are progressing nicely, so I'll sit back and wait
to see how things turn out!

On 28 August 2010 00:12, Greg Brown <[email protected]> wrote:

> > Is there a way to get an image representation of the header, or the
> header
> > and its column, so that it actually looks like you're moving the whole
> column?
>
> There are a couple ways you could do this. The easiest would probably be to
> draw the header to a buffered image and use that as the drag image.
>
> > Also, as you're dragging it, can you set where the column was to be
> > a greyed out column, kinda like how swing does by default?
>
> The easiest way to do this in application code would probably be to attach
> a decorator to the header that paints a semi-opaque rectangle over the
> header's bounds.
>
>
>

Reply via email to