Could OpenNetCF InkX control be change to inherit from TextBoxBase instead of control?

Could OpenNetCF InkX control be change to inherit from TextBoxBase instead of control?

Post by Russ Ryb » Sat, 04 Dec 2004 03:08:53


Could OpenNetCF InkX control be change to inherit from TextBoxBase
instead of control?

I really like the OpenNetCF stuff. It's quite useful. Does anyone know
if it's possible to change things to inherit all the features of
TextBoxBase, instead of inheriting from Control as it currently does?

The RichText and Textbox controls are based on TextBoxBase on the
desktop. I wonder if it would be possible to change InkX to use the
same base.

I have been messing with it, but I just learned .NET, and the low level
marshaling is giving me troubles. I really just want a Richtext
control, no ink, no recording, no handwriting, zoom, etc.

Would this best be accomplished as a New OpenNetCF (or other namespace)
control, or would it be easier to change the InkX to inherit from
System.Windows.Forms.TextBoxBase instead of System.Windows.Forms.Control?

Let me know what you think...

Russ Ryba
 
 
 

Could OpenNetCF InkX control be change to inherit from TextBoxBase instead of control?

Post by Peter Foot » Sat, 04 Dec 2004 03:51:13

What specific properties/methods would you most like to use from
TextBoxBase?

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

 
 
 

Could OpenNetCF InkX control be change to inherit from TextBoxBase instead of control?

Post by Russ Ryb » Sat, 04 Dec 2004 03:56:53


The features I would like to see available are...

.SelectionStart - Get/Set
.SelectionLength - Get/Set
.SelectedText - Get/Set
.ScrollToCaret Method

These are the core of my application. It's a reader that allows people
to view a file that's being edited remotely. Changes are sent to the
handheld as they are made.

Then the other things I would need as far as richtext would be something
like...

.MakeSelectionBold
.MakeSelectionItalic
 
 
 

Could OpenNetCF InkX control be change to inherit from TextBoxBase instead of control?

Post by Russ Ryb » Sat, 04 Dec 2004 04:03:08


And of course the .Text property, but I believe that is already implemented.