can I change the content of drawstring with caret?

I use graphics to draw some text seperately into canvas.

think "X(12.3) >Y(45.6) "

I want to detect when user click on any charactor of “12.3”’,then show a caret ,and allow the user to edit the value.
how can I deal with it?

I just no idea now…

You’ll have to keep track of where you draw them and then deal with the mouse clicks in MouseDown and MouseUp by showing an editor form of some kind.

I will have to record the “(” and “)” positions I think…so I can dectect the click event when it clicks.

is it crucial it be drawn as a graphic ?
if not why not use an textarea or textfield and let that control do the work for you ?
otherwise you’re literally reinventing that kind of control

[quote=334176:@Norman Palardy]is it crucial it be drawn as a graphic ?
if not why not use an textarea or textfield and let that control do the wok for you ?
otherwise you’re literally reinventing that kind of control[/quote]

I draw grid,text,totally by “Graphic g” on canvas.
I have an idea is that I detect the click event,and detect if on the “(12.3”) 's block.
and them show a editfield on the mouse click position ,right?

ah ok …
then yeah you’ll have to track the size & position of the things that people can / could click on to be able to show them an appropriate “editor” when they click them

ok,thanks

is there a mistaken flicker problem on windows?