Re: [Swingosc-devel] Linux LAF
Brought to you by:
sciss
From: Sciss <co...@sc...> - 2010-02-16 01:13:46
|
i added something for you, try it out: ( var w; w = JSCWindow( "JSCTextField" ); b = JSCTextField( w, Rect( 10, 10, 150, 16 )); b.string = "hi there"; b.action = { arg field; field.value.postln }; c = JSCNumberBox( w, Rect( 10, 40, 150, 16 )).value_( 0.0 ); w.front; ) b.setLineBorder; b.setLineBorder( Color.blue ); b.setLineBorder( Color.red, 2 ); b.borderless = true; b.borderless = false; c.setLineBorder( Color.yellow, 3 ); c.setNormalBorder ciao, -sciss- Am 15.02.2010 um 23:38 schrieb James Harkins: > On Mon, Feb 15, 2010 at 12:21 PM, Sciss <co...@sc...> wrote: > hmmm. > > one could make the border optional: > > That does help. I have temporarily changed prInitView for JSCTextField and JSCNumberBox in my environment like so (here from JSCTextField): > > ^this.prSCViewNew([ > [ '/local', this.id, '[', '/new', "de.sciss.swingosc.TextField", ']', > "ac" ++ this.id, > '[', '/new', "de.sciss.swingosc.ActionResponder", this.id, \text, ']', > "tx" ++ this.id, > '[', '/new', "de.sciss.swingosc.DocumentResponder", this.id, ']' ] > ], [ > [ '/set', this.id, \border ] ++ nil.asSwingArg > ]); > > It's not a perfect solution - the class browser doesn't draw a border around the class name textfield anymore, but I can change the background on that view and it will be OK. It's definitely good enough for my purposes. > > Thanks for the help! > hjh > > > -- > James Harkins /// dewdrop world > jam...@de... > http://www.dewdrop-world.net > > "Come said the Muse, > Sing me a song no poet has yet chanted, > Sing me the universal." -- Whitman > ------------------------------------------------------------------------------ > SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW > http://p.sf.net/sfu/solaris-dev2dev_______________________________________________ > Swingosc-devel mailing list > Swi...@li... > https://lists.sourceforge.net/lists/listinfo/swingosc-devel |