FROM : Yann Bizeul
DATE : Thu Nov 14 14:09:51 2002
Hi there,
I'm trying to create a trasparent text field inside a borderless window.
So, I create a new NSWindow like this :
[ logWindow
initWithContentRect: logWindowRect
styleMask: NSBorderlessWindowMask
backing: NSBackingStoreBuffered
defer: NO
];
And set hist content view to the one I made in InterfaceBuilder.
Inside this view there is a TextField with transparent background
(opacity 0%) and I always get a black square in the bottom left corner
of my window :
[demime 0.98b removed an attachment of type image/tiff which had a name of pastedGraphic1.tiff]
When I dbl click the textfield in IB to edit the TextView directly, I=20
see that his top/left y value is -173 (red) and I'm afraid the black=20
square is 173 pixels.
I think this is a bug in IB, but how to solve it ?
Thanks !
--=20
Yann Bizeul
TYNSOE.ORG - http://www.tynsoe.org/
Site technique consacr=E9 =E0 MacOS X
--=20
Yann BIZEUL
LINAGORA
30, rue Saint-Augustin
75002 Paris
T=E9l. 01 58 18 68 35
Std. 01 58 18 68 28
Mob. 06 60 43 00 88=
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Thu Nov 14 14:09:51 2002
Hi there,
I'm trying to create a trasparent text field inside a borderless window.
So, I create a new NSWindow like this :
[ logWindow
initWithContentRect: logWindowRect
styleMask: NSBorderlessWindowMask
backing: NSBackingStoreBuffered
defer: NO
];
And set hist content view to the one I made in InterfaceBuilder.
Inside this view there is a TextField with transparent background
(opacity 0%) and I always get a black square in the bottom left corner
of my window :
[demime 0.98b removed an attachment of type image/tiff which had a name of pastedGraphic1.tiff]
When I dbl click the textfield in IB to edit the TextView directly, I=20
see that his top/left y value is -173 (red) and I'm afraid the black=20
square is 173 pixels.
I think this is a bug in IB, but how to solve it ?
Thanks !
--=20
Yann Bizeul
TYNSOE.ORG - http://www.tynsoe.org/
Site technique consacr=E9 =E0 MacOS X
--=20
Yann BIZEUL
LINAGORA
30, rue Saint-Augustin
75002 Paris
T=E9l. 01 58 18 68 35
Std. 01 58 18 68 28
Mob. 06 60 43 00 88=
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Yann Bizeul | Nov 14, 14:09 | |
| Yann Bizeul | Nov 14, 14:09 |






Cocoa mail archive

