As discussed on the other thread, here is some of the information I've managed to pull together re: the InkEdit control and the Text Object Model (tom). I understand what you mean re: there being a lack of resources re: the InkEdit control. To be honest, I genuinely don't think that many people even know that it even exists, and of those that do, even fewer know about the InkPicture control... but that's a whole separate rabbit hole!
Ink Edit Control: - I don't know if this is the 'official' documentation for the InkEdit control, but it looks pretty 'official'y to me.
RichEdit - I have found from personal experience that restricting any research into the topic by contraining it to "inkedit" and "vba" somewhat misses the point. It is, at the end of the day, an underappreciated RichEdit TextBox. When we think about it in those terms, we can see a lot more information about what we can do with it:
RichEdit versions
Importantly, I've found the best source of information to be the VB6 community - which is unsurprising, given that (at the end of the day) =
vb6 = vba -
[RESOLVED] InkEdit Control-VBForums ,
VB6 - InkEdit and SelText-VBForums ,
Ink Edit Spell Checking-VBForums ,
VB6 - Ink Editor-VBForums (are a handful of examples)
Text Object Model - I think that the best way of understanding the Text Object Model is to think about it in the same terms as Word VBA - there is a Document (ITextDocuemnt) with Stories (ie. Header/Footer. etc), comprising of a Selection (ActiveDocument.Selection) and Ranges(Application.Range).. I don't know that it gives us 'more' functionality than APs do - it just makes things easier to deal with -
Text Object Model - Win32 apps So, for example, to get the current line of the cursor in the InkEdit control (as per your Original Post above), via the Text Object Model, all we need to do is something along the lines of:
VBA Code:
GetCurrentLineNumber = TextDocument.Selection.GetIndex(tomLine)
This is a slight oversimplification, but it's broadly along these lines. A little bit further down the InkEdit Control rabbit hole took me to where I am currently, which is finalising the API generated Inkedit Control (ie., RichEdit TextBox) that functions like a multi-font/multistyled/multicolour Caption:
Also, there is a whole lot of functionality available that I never expected - like it has a basic form of spell checking available in it! And you can use it to autodetect URLs... for example:
That is all a bit of an information overload, but I thought it might be useful to someone if I just collated some of my research to-date on the topic. I hope that helps. I'm still exploring the TOM and the InkEdit control myself, so your question above was timely!