[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] another minor JSCTextView issue
hmmm, looks like a java-swing bug... also here:
(
var win;
win = JSCWindow.new;
w = win;
t = JSCTextView( win, win.view.bounds.insetAll( 4, 4, 4, 40 ))
.resize_( 5 )
.hasVerticalScroller_( true )
.autohidesScrollers_( true )
//.usesTabToFocusNextView_( false )
.string_("adsf;ajhdslfhwae uhaiush dsuaefw")
// .focus( true );
.select( 0, 20 );
JSCButton( win, Rect( 4, t.bounds.bottom + 4, t.bounds.width, 32 ))
.states_([[ "Test" ]])
.focus( true );
win.front;
)
the text view selection is only made visible the first time the view has active focus... it happens with different look-and-feels, so is not aqua specific. don't know if i can do much about it, but i put it in the bug tracker.
best, -sciss-
Am 23.12.2009 um 11:31 schrieb ronald kuivila:
> Hi Sciss,
>
> When a JSCTextView is first created, select from the language does not hilight in the view. But clicking on the
> window once makes everything work...
>
> Try
> (
> var win;
>
> win = JSCWindow.new;
> t = JSCTextView( win, win.view.bounds.insetBy( 4, 4 ))
> .resize_( 5 )
> .hasVerticalScroller_( true )
> .autohidesScrollers_( true )
> .string_("adsf;ajhdslfhwae uhaiush dsuaefw")
> .focus( true );
> win.front;
> )
>
> t.select(0, 20);
> t.selectedString;
> // Now click on the window and come back and do it again....
>
> t.select(0, 20);
> t.selectedString;
>
>
> RJK
_______________________________________________
sc-dev mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/