[sc-users] alpha on window
Andrea Valle
valle at di.unito.it
Thu Oct 4 00:12:41 PDT 2007
Thanks Sciss
(
var w;
w = JSCWindow( "JSCTextField" );
b = JSCTextField( w, Rect( 10, 10, 150, 30 ));
b.string = "hi there";
b.action = { arg field; field.value.postln };
b.background_(Color.new(1.0, 0.0, 0.0, 1.0)) ; // it's opaque
w.front;
)
// vs
(
var w;
w = JSCWindow( "JSCTextField" );
b = JSCTextField( w, Rect( 10, 10, 150, 30 ));
b.string = "hi there";
b.action = { arg field; field.value.postln };
b.background_(Color.new(1.0, 0.0, 0.0, 0.1)) ; // here's alpha
is 0.1
w.front;
)
If I type in the JSCTextField and then cancel I have (in the second
example) a sort of progressive deletion. Which is what I was non
expecting (simply I thought of a transparent background like setting
a Document.background with a certain alpha-ed color)
Thanks
If it's a bug, I'll add it to tracker
Best
-a-
On 3 Oct 2007, at 17:50, Sciss wrote:
can you post example good. maybe try win.refresh or
win.view.refresh ? probably an opacity problem. please put a
description in the swingosc sourceforge bugtracker and i will look at
it once i have the time...
ciao, -sciss-
--------------------------------------------------
Andrea Valle
--------------------------------------------------
CIRMA - DAMS
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> andrea.valle at unito.it
--------------------------------------------------
I did this interview where I just mentioned that I read Foucault. Who
doesn't in university, right? I was in this strip club giving this
guy a lap dance and all he wanted to do was to discuss Foucault with
me. Well, I can stand naked and do my little dance, or I can discuss
Foucault, but not at the same time; too much information.
(Annabel Chong)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.create.ucsb.edu/pipermail/sc-users/attachments/20071003/c690cc74/attachment-0001.htm
More information about the sc-users
mailing list