Am 16.05.2019 11:41:53 schrieb LawsonEnglish <lenglish5@cox.net>:
Hmmm. Doesn’t seem to work. Eventually opens up an uncountable number of MNU windowsTranscript := TranscriptStream new.text := Text string: 'text' attribute: (Color red).Transcript show: text;cr16 May 2019 2:39:05.027292 amVM: Mac OS - SmalltalkImage: Squeak5.2 [latest update: #18229]SecurityManager state:Restricted: falseFileAccess: trueSocketAccess: trueWorking Dir /Applications/Squeak5.2-18229-64bit copy.app/Contents/ResourcesTrusted Dir /Users/lawson/Library/Application Support/Squeak/Untrusted Dir /Users/lawson/Documents/Squeak/Color(Object)>>doesNotUnderstand: #emphasizeScanner:Receiver: Color redArguments and temporary variables:aMessage: emphasizeScanner: a CharacterBlockScannerexception: MessageNotUnderstood: Color>>emphasizeScanner:resumeValue: nilReceiver's instance variables:rgb: 1072693248cachedDepth: 32cachedBitPattern: a Bitmap of length 1[…]--- The full stack ---Color(Object)>>doesNotUnderstand: #emphasizeScanner:[] in CharacterBlockScanner(CharacterScanner)>>setFontArray(SequenceableCollection)>>do:CharacterBlockScanner(CharacterScanner)>>setFontCharacterBlockScanner>>setFontCharacterBlockScanner(CharacterScanner)>>setStopConditionsCharacterBlockScanner>>characterBlockAtPoint:index:in:NewParagraph>>characterBlockForIndex:SmalltalkEditor(TextEditor)>>markIndex:pointIndex:SmalltalkEditor(Editor)>>selectInvisiblyFrom:to:SmalltalkEditor(TextEditor)>>selectFrom:to:SmalltalkEditor(Editor)>>selectInterval:PluggableTextMorphPlus(PluggableTextMorph)>>mouseEnter:PluggableTextMorphPlus(Morph)>>handleMouseEnter:MouseButtonEvent(MouseEvent)>>sentTo:MouseButtonEvent>>sentTo:PluggableTextMorphPlus(Morph)>>handleEvent:[] in MouseOverHandler>>processMouseOver:Array(SequenceableCollection)>>reverseDo:- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -MouseOverHandler>>processMouseOver:HandMorph>>processEvents[] in WorldState>>doOneCycleNowFor:Array(SequenceableCollection)>>do:WorldState>>handsDo:WorldState>>doOneCycleNowFor:WorldState>>doOneCycleFor:PasteUpMorph>>doOneCycle[] in MorphicProject>>spawnNewProcess[] in BlockClosure>>newProcessOn May 16, 2019, at 1:14 AM, Marcel Taeumel <marcel.taeumel@hpi.de> wrote:<color-transcript.1.cs>_______________________________________________Hi Lawson,please find attached a changeset that adds text support to TranscriptStream. You have to replace your transcript with "Transcript := TranscriptStream new".Best,MarcelAm 15.05.2019 20:35:00 schrieb LawsonEnglish <lenglish5@cox.net>:
I’m trying to implement something along the lines of:
ColorTranscript show: ‘text’ withColor: Color red; show: ‘more text’ withColor: Color blue.
All stream classes seem to strip out text attribute information except AttributedTextStream which seems rather incomplete.
I was thinking that I could analyze how the color menu that is accessed via cmd-6 (on the mac) is able to colorize a selection even in a transcript window and so implement the functionality by faking the UI’s steps, but I can’t figure out how to debug the interface and trace though a menu call to see what it actually does.
Any suggestions?
on how to trace the steps to colorize a word via the menu OR on how to implement the functionality directly…
Either/both would be appreciated,
Thanks.
Lawson
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners