Re: type directly on graphic object: caret ?
- From: Joergen Bech <jbech<NOSPAM>@<NOSPAM>post1.tele.dk>
- Date: Mon, 06 Nov 2006 10:55:54 +0100
If you dig deep down in the framework, studying .e.g. the
TextBox control, I think you'll find that the caret stuff is still
using the Win32 API.
Search for .Net wrappers for the following Win32 API functions:
CreateCaret
DestroyCaret
GetCaretBlinkTime
GetCaretPos
HideCaret
SetCaretBlinkTime
SetCaretPos
ShowCaret
Unless you want to create and draw your own caret using
fully managed code.
/Joergen Bech
On 6 Nov 2006 01:31:03 -0800, "pamela fluente"
<pamelafluente@xxxxxxxxx> wrote:
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
.
- Follow-Ups:
- Re: type directly on graphic object: caret ?
- From: pamela fluente
- Re: type directly on graphic object: caret ?
- References:
- type directly on graphic object: caret ?
- From: pamela fluente
- type directly on graphic object: caret ?
- Prev by Date: type directly on graphic object: caret ?
- Next by Date: Re: type directly on graphic object: caret ?
- Previous by thread: type directly on graphic object: caret ?
- Next by thread: Re: type directly on graphic object: caret ?
- Index(es):
Relevant Pages
|