I need to delete X lines from the middle of a textctrl starting from line number Y
Is there any easy way to do this? I can't see one: it seems like I have to somehow search through the contents of the TextCtrl counting newlines to find the position of Y...