Re: How to create a window with a border
Re: How to create a window with a border
- Subject: Re: How to create a window with a border
- From: Christian Schneider <email@hidden>
- Date: Wed, 9 Mar 2005 21:56:18 +0100
Sean,
thanks for your answer.
As I said in my second mail, I am now using a child window with a
black background colour (and a borderless window mask) that is
slightly larger than my original window.
That works fine except when resizing the window. When my window's
setFrame: is called I relay that call to the child window but the
effect is that the two windows are drawing one after the other which
looks rather ugly.
As a workaround I first remove the childWindow then resize the parent,
then resize the child, attach it again and order it front to force
drawing. That works but has the side effect, that the border is not
visible during resize.
It should, however, be possible to have the windows draw in sync; at
least that's what I think they can do if I move the parent window.
chris
On Wed, 9 Mar 2005 11:20:31 -0500, Sean McBride <email@hidden> wrote:
> On 2005-03-09 13:23, Christian Schneider said:
>
> >Final Cut Pro arranges several windows adjacent to one another and
> >uses a black border around each of those windows to allow users to
> >differentiate between them. The border comprises the whole window
> >including the title bar.
>
> FCP does all sorts of non-standard UI things. ;( It doesn't really even
> look like a Mac app.
>
> >Can I create a window with a border in Cocoa (I presume Final Cut Pro
> >is a Carbon app) and if so does anyone know how?
>
> FCP is Carbon. You'll notice that FCP's windows are totally custom
> looking. I suspect they use a custom WDEF. I'm not aware of an
> equivalent in Cocoa, but you can maybe use a Carbon window with custom
> WDEF in your Cocoa project.
>
_______________________________________________
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