type directly on graphic object: caret ?



howdy guys,

I would need to type characters directly on a graphic object in
response to key press. I want to be able to control globally the char
and words spacing, justification, etc.

I guess I need to measure both chars and string. For that, there should
not be much problem with GDI+, using measurestring or char.

What I have problem to figure out is actually an apparently simple
thing: how to make the cursor (caret) and make it go ahead and back in
response to the key press.

Has anyone ever written some some example code of direct text writing
or is there some known sample on the net from which I could start and
possibly move on? That would be really great.

Thanks

-P

.



Relevant Pages

  • Re: Reading XML stream using unmanaged c++
    ... It is never safe to assume values are char *, or that they have a fixed upper bound. ... I have used the ExPat library to handle XML; the MSXML stuff is rather complex and if I ... My code below sending request to web server and getting response as XML ... where outout of above function returns xml string which is stored in ...
    (microsoft.public.vc.mfc)
  • [PATCH] tpm: sysfs function buffer size fix
    ... No this is not ok because in several of these cases the response to the ... command is longer than tpm_cap thus the reason for the hardcoded size. ... char *buf) ...
    (Linux-Kernel)
  • Re: Meaning of unsigned char
    ... That's not even worth a response. ... Keith has a strong opinion of your style as I suspect most programmers ... from severe mental retardation should be able to understand that "char ... I am respected until I choose to defend my way of doing things, ...
    (comp.lang.c)
  • Angband Gender Poll RESULTS
    ... A highly unscientific poll, yes, but here's what we got: ... I haven't done this rigorously yet but it looks like the response rate was ... in the ng play Hobbit Chase?), Galaxy, and Moria later on. ... a level 33 char, then other issues such as my thesis got in the way. ...
    (rec.games.roguelike.angband)
  • Re: WM_COPYDATA, overhead
    ... response to user keypresses on a control panel. ... The key point is that sending this message in response to a key press makes it a very infrequent operation. ...
    (microsoft.public.vc.mfc)