[Mono-winforms-list] Caret

David Joyner d4ljoyn at gmail.com
Fri Mar 9 06:15:35 EST 2007


Actually, that's exactly my situation: porting a Control derived class over
to MWF.  Currently  Win32 interop is used to accomplish this and I was
hoping for a platform independent way (without duplicating the code already
available).

Dave

On 3/9/07, Rafael Teixeira <monoman at gmail.com> wrote:
>
> AFAIK, it depends on the control you are using. In Textbox, I think
> you have properties like SelectionStart and SelectionCount that
> control the selection and the caret (when SelectionCount == 0).
>
> Unless you are trying to write a custom control, you normally doesn't
> manipulate the caret directly. I would look in the TextBox control
> sources to have the gist of it, if I where you
>
> Good hunting,
>
> On 3/9/07, David Joyner <d4ljoyn at gmail.com> wrote:
> > I have a situation where I would like to control the caret.  I noticed
> that
> > in the XPlatxxx classes there are methods to handle this but all are
> > internal.
> >
> > Is there a recommended way for applications to show, hide, and position
> the
> > caret?
> >
> > Thanks
> >
> > _______________________________________________
> > Mono-winforms-list maillist  -
> > Mono-winforms-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-winforms-list
> >
> >
>
>
> --
> Rafael "Monoman" Teixeira
> ---------------------------------------
> "The reasonable man adapts himself to the world; the unreasonable one
> persists in trying to adapt the world to himself. Therefore all
> progress depends on the unreasonable man." George Bernard Shaw
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20070309/4a6d776d/attachment-0001.html 


More information about the Mono-winforms-list mailing list