selection location in RichTextBox
Posted on 2004-08-17
hi again experts,
i have a RichTextBox in which the user designs dumb terminal screens. i've fixed the size so that it only allows 80 chars per line and a total of 24 lines. after the user gets the screen (rtb) looking like they want it, i need my code to translate the screen into a file that desribes the layout of the screen. in order to do this, i plan to scan the text by selecting each character one by one. if i could detect a change in y-coordinate of the selected text, i could tell when a new line will need to be described. any idea on how to do this?