Hi,
I think it's possible, but something of an ordeal to get the carat pixel location; there is no simple API unfortunately. Basically the method is something like this:
1 ) Get the carat text index via MultiLineEditbox::getCaratIndex
2 ) Get the line number where the carat index falls via MultiLineEditbox::getLineNumberFromIndex.
3 ) Your intermediate 'y' co-ordinate is the line number from 2 multiplied by the Font height.
4 ) Get the formatted line information collection (LineList which is a std::vector of MultiLineEditbox::LineInfo structs) via MultiLineEditbox::getFormattedLines.
5 ) Access the LineList collection to obtain the LineInfo with details of the line number determined in step 2.
6 ) From this LineInfo obtain the text substring from LineInfo::d_startIdx with a length of
caratIndex - LineInfo::d_startIdx.
7 ) to get the intermediate 'x' co-ordinate use Font::getTextExtent to obtain the pixel extent of the string from step 6.
8 ) Use MultiLineEditbox::getTextRenderArea and offset the intermediate 'x' and 'y' by the location of this Rect.
This gives you your carat pixel location as offset from the top-left corner of the editbox window. For screen positions, you just have to add the pixel position of the window (there are converters, you just get the screen position Rect via Window::getUnclippedPixelRect). Simple, eh?!
HTH
CE.