[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-dev] another minor JSCTextView issue



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