Shane, another BIG thank you! So simple, and I completely overlooked it. Couldn’t see the wood for the trees.
Now, if you don’t mind, another question.
I’m passing my new script object’s only handler a list of variables, the first of which is bound to a scroll field; theNewColorsScrollView in my example.
I don’t know yet if it will work, but as this new script object could be called from any amount of scripts existing in a project, should I include the actual calling script (by name or by binding), in the list of variables? Or, is the mere fact I’m (hopefully) using a variable that’s a binding to any particular scroll field enough for the Attributed text drawing handler ‘writeEachMessage_’ to ‘know’ what script it is being called from, and to write to the correct scroll field?
I’m asking because I’m not yet even sure I can pass a variable that’s a bound property between script handlers.
attributedTextDrawerCaller's writeEachMessage_(theNewColorsScrollView, newColorText, (theFontInUse as text), textLinePlacement, textLineReplace, textLineBold, textLineItalic, textLineUnderlined, textLineOutlined, textLineFontSize, textLineColor, textLineDwell as real, textLineFlashDwell as real, textLineFlashTimes as real, textLineFlashColor, textWordString, textWordBold, textWordItalic, textWordUnderlined, textWordOutlined, textWordDwell as real, textWordFlashDwell as real, textWordFlashTimes as real, textWordFlashColor, maximumLineCount, true)
property theTextFieldReference : missing value
on writeEachMessage_(theTextFieldReference, theText, textFont, textPlacement, replace, textBold, textItalic, textUnderline, textOutline, textSize, textColor, textDwell, lineFlashDwell, lineFlash, lineFlashColor, wordFlashString, wordsBold, wordsItalic, wordsUnderline, wordsOutline, wordDwell, wordFlashDwell, wordFlashTimes, wordFlashColor, maximumLines, drawOriginalTextLine)
Regards
Santa
On 27 Mar 2016, at 5:06 PM, Shane Stanley < email@hidden> wrote: On 27 Mar 2016, at 5:00 PM, Brian Christmas < email@hidden> wrote:
I assume you’re suggesting the problem could lie at the wording of the code in my sub-script.
Please, it's not a "sub-script". It's a class file. The name of the class is the name you give your script object. That line should say "script AttributedTextDrawer".
|