|
From: | Olivier Biot |
Subject: | Re: String number spanner |
Date: | Fri, 28 Dec 2012 18:19:22 +0100 |
From: "Nick Payne"
I'm stuck on the last part of getting this working - the part that is eluding me is getting a short vertical line drawn at the RH end of the spanner. According the the Internals reference, UP = 1 and DOWN = -1, and that works fine when I use the return value from the updown function to set TextSpanner.direction in beginStringNum. But when I try to use the value returned from updown in the section of code that is commented out in beginStringNum, I get an error. If I hardcode 1 or -1 instead of updown then the line is drawn as expected.
I also tried the righttext function below to draw the line: no error is indicated but neither is the vertical line drawn.
[Prev in Thread] | Current Thread | [Next in Thread] |