Find the x, y point of a string within a text box

后端 未结 3 457
感动是毒
感动是毒 2021-01-26 07:11

Is there a way to return a point for a string within a text box? I found a COM function GetTextExtentPoint that will return the length of a string, but I want to know the point

3条回答
  •  广开言路
    2021-01-26 07:50

    what comes to mi mind is to take a snapshot of both the form and text then do some fancy image comparing to find the starting point.. but for this you need to write/download a library that has theese comparing methods... thus becoming very complicated...

    why do you need to do this?

提交回复
热议问题