Re: Java NSViews Using Clear Colors
Re: Java NSViews Using Clear Colors
- Subject: Re: Java NSViews Using Clear Colors
- From: Ricky Sharp <email@hidden>
- Date: Mon, 07 Feb 2005 08:12:02 -0600
On Monday, February 07, 2005, at 06:10AM, Jack <email@hidden> wrote:
>I have tried so many different approaches I have none left up my sleeve.
>
>The idea is that I want to track mouse views by drawing a vertical and
>horizontal line whenever they cross. To do this I use a NSView
>subclass called MouseTrackView.
>
>The problem is that the view does not get painted fresh, partly because
>I have filled the rect in drawRect() with a clearColor. Filling it
>with any other color achieves the objective, but it has to be
>transparent so that the views below it are visible.
This sounds like you have overapping views. A better approach may be to use a transparent overlay window that synchronizes itself with the underlying view (i.e if the view moves, so does your overlay window).
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden