But sometimes I happened to see that some one-line codes and their line
number are overlapped.
And line numbers are also controlled by the same horizontal scrollbar(I
mean, it is contained in the scrollbar's view, if there is another canvas
this should not happen).
Maybe they are displayed in a special image box(also, those non-string
snips may produce lines that bigger than text line height).
On Thu, Mar 9, 2017 at 9:31 AM, WarGrey Gyoudmon Ju <juzhenli...@gmail.com>
> I think, line numbers are likely displayed in another canvas.
> The current implementation of text% does not support advanced font
> features, the line height therefore is always the same. Displaying the line
> numbers just consists of a bit of arithmetic.
> On Thu, Mar 9, 2017 at 8:31 AM, 武晓宇 <guluguluc...@gmail.com> wrote:
>> I want to implement a text% object. And display the line number when
>> string is inserted the text/canvas area.
>> Like the DrRacket IDE in "show line number" mode.
>> I read the source code of DrRacket but do not find the answer. Could
>> anyone give a hand?
>> You received this message because you are subscribed to the Google Groups
>> "Racket Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to racket-users+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.