TextView.st
changeset 4056 b0cf275fc450
parent 4009 6c421dbb325e
child 4063 6d2caa13cb14
equal deleted inserted replaced
4055:dc506d7e06b5 4056:b0cf275fc450
   282 
   282 
   283 updateStyleCache
   283 updateStyleCache
   284     "extract values from the styleSheet and cache them in class variables"
   284     "extract values from the styleSheet and cache them in class variables"
   285 
   285 
   286     <resource: #style (#'textView.background'
   286     <resource: #style (#'textView.background'
   287                        #'text.selectionForegroundColor' #'text.selectionBackgroundColor'
   287                        #'text.selectionForegroundColor' 
   288                        #'text.alternativeSelectionForegroundColor' #'text.alternativeSelectionBackgroundColor'
   288                        #'text.selectionBackgroundColor'
   289                        #'textView.font' #'text.wordSelectCatchesBlanks'
   289                        #'text.alternativeSelectionForegroundColor' 
       
   290                        #'text.alternativeSelectionBackgroundColor'
       
   291                        #'textView.font' 
       
   292                        #'text.wordSelectCatchesBlanks'
   290                        #'text.st80Selections')>
   293                        #'text.st80Selections')>
   291 
   294 
   292     DefaultViewBackground := StyleSheet colorAt:'textView.background' default:White.
   295     DefaultViewBackground := StyleSheet colorAt:'textView.background' default:White.
   293     DefaultSelectionForegroundColor := StyleSheet colorAt:'text.selectionForegroundColor'.
   296     DefaultSelectionForegroundColor := StyleSheet colorAt:'text.selectionForegroundColor'.
   294     DefaultSelectionBackgroundColor := StyleSheet colorAt:'text.selectionBackgroundColor'.
   297     DefaultSelectionBackgroundColor := StyleSheet colorAt:'text.selectionBackgroundColor'.
  4293 ! !
  4296 ! !
  4294 
  4297 
  4295 !TextView class methodsFor:'documentation'!
  4298 !TextView class methodsFor:'documentation'!
  4296 
  4299 
  4297 version
  4300 version
  4298     ^ '$Header: /cvs/stx/stx/libwidg/TextView.st,v 1.310 2009-10-22 09:01:35 fm Exp $'
  4301     ^ '$Header: /cvs/stx/stx/libwidg/TextView.st,v 1.311 2009-11-02 10:13:12 cg Exp $'
  4299 !
  4302 !
  4300 
  4303 
  4301 version_CVS
  4304 version_CVS
  4302     ^ '$Header: /cvs/stx/stx/libwidg/TextView.st,v 1.310 2009-10-22 09:01:35 fm Exp $'
  4305     ^ '$Header: /cvs/stx/stx/libwidg/TextView.st,v 1.311 2009-11-02 10:13:12 cg Exp $'
  4303 ! !
  4306 ! !
  4304 
  4307 
  4305 TextView initialize!
  4308 TextView initialize!