# TextArea - LinenumAtCharPos etc.

**URL:** <https://forum.xojo.com/t/textarea-linenumatcharpos-etc/46225>\
**Category:** General\
**Created:** [November 12, 2018, 10:20pm UTC](https://forum.xojo.com/t/textarea-linenumatcharpos-etc/46225 "2018-11-12T22:20:59Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Jason\_Parsley](https://forum.xojo.com/user_avatar/forum.xojo.com/jason_parsley/32/152_2.png) [@Jason\_Parsley](https://forum.xojo.com/u/Jason_Parsley)\
**Post date:** [November 13, 2018, 7:20pm UTC](https://forum.xojo.com/t/textarea-linenumatcharpos-etc/46225/21 "2018-11-13T19:20:42Z")

</div>

I added a link to my post above.

---

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [November 13, 2018, 7:24pm UTC](https://forum.xojo.com/t/textarea-linenumatcharpos-etc/46225/22 "2018-11-13T19:24:12Z")

</div>

> [@414115:@Dave S](#):
>
> but for which there is no documentation or examples

all that is at the link is a ton of “C” code … with no other real information, but thanks

---

<div class="post-metadata">

**Author:** ![Martin\_T](https://forum.xojo.com/letter_avatar_proxy/v4/letter/m/a88e57/32.png) [@Martin\_T](https://forum.xojo.com/u/Martin_T)\
**Post date:** [November 13, 2018, 7:46pm UTC](https://forum.xojo.com/t/textarea-linenumatcharpos-etc/46225/23 "2018-11-13T19:46:16Z")

</div>

Hi Dave,

[here](https://bkeeney.com/text-input-canvas/) you can find a minimalistic example of an implementation of TextInputCanvas in Xojo. I agree with you, all previous wishes to the Xojo team, to provide a good documentation of the plugin, unfortunately remained unheard of. Maybe the Demo Project will help you.

---

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [November 13, 2018, 7:50pm UTC](https://forum.xojo.com/t/textarea-linenumatcharpos-etc/46225/24 "2018-11-13T19:50:34Z")

</div>

[quote=414125:@Martin Trippensee]Hi Dave,

[here](https://bkeeney.com/text-input-canvas/) you can find a minimalistic example of an implementation of TextInputCanvas in Xojo. I agree with you, all previous wishes to the Xojo team, to provide a good documentation of the plugin, unfortunately remained unheard of. Maybe the Demo Project will help you.[/quote]  
Thanks Martin… I actually found that a few minutes ago… however ☹ it doesn’t compile

---

<div class="post-metadata">

**Author:** ![Martin\_T](https://forum.xojo.com/letter_avatar_proxy/v4/letter/m/a88e57/32.png) [@Martin\_T](https://forum.xojo.com/u/Martin_T)\
**Post date:** [November 13, 2018, 7:56pm UTC](https://forum.xojo.com/t/textarea-linenumatcharpos-etc/46225/25 "2018-11-13T19:56:43Z")

</div>

You need to install this [plugin](http://www.macsw.de/plugin/TextInputCanvas.zip) into the Plugins Folder!

---

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [November 13, 2018, 8:34pm UTC](https://forum.xojo.com/t/textarea-linenumatcharpos-etc/46225/26 "2018-11-13T20:34:15Z")

</div>

> [@414127:@Martin Trippensee](#):
>
> You need to install this [plugin](http://www.macsw.de/plugin/TextInputCanvas.zip) into the Plugins Folder!

I did… and restarted Xojo… and more compile errors than I can count…

If they wanted this to be “Top Secret” why leak it to begin with

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [November 13, 2018, 9:47pm UTC](https://forum.xojo.com/t/textarea-linenumatcharpos-etc/46225/27 "2018-11-13T21:47:31Z")

</div>

I didn’t get any compile errors with 2018r3 and the 64bit `MBS Xojo TextInputCanvas Plugin`.  
Also, I’m curious who said they wanted it to be “Top Secret” ?

---

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [November 13, 2018, 9:52pm UTC](https://forum.xojo.com/t/textarea-linenumatcharpos-etc/46225/28 "2018-11-13T21:52:15Z")

</div>

> [@414140:@Tim Parnell](#):
>
> Also, I’m curious who said they wanted it to be “Top Secret” ?

Well if it were something that were not such a secret, then there would be documentation available… what it was, what it did, how it worked, why you should want to use it, how it is better that something else

And the error I got… were This item not found for the most part,… but others as well… pages and pages

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [November 13, 2018, 10:29pm UTC](https://forum.xojo.com/t/textarea-linenumatcharpos-etc/46225/29 "2018-11-13T22:29:46Z")

</div>

> [@414141:@Dave S](#):
>
> And the error I got… were This item not found for the most part,… but others as well… pages and pages

What items were not found? That usually suggests the plugin didn’t load, especially if you got a BUNCH of errors for it.

My main two guesses if the plugin didn’t load:

1. Double check that you have the 64bit version. MBS is the only one who compiled it 64 bit, but it doesn’t require an MBS license to use.
2. Translocation fun, but if you had any, the other plugins wouldn’t load either.

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [November 13, 2018, 10:37pm UTC](https://forum.xojo.com/t/textarea-linenumatcharpos-etc/46225/30 "2018-11-13T22:37:34Z")

</div>

I know you’re not a big fan of plugins, so just in case you didn’t know about it you can check which ones were loaded successfully by going to the Xojo menu, selecting About Xojo, and clicking the Loaded Plugins tab. If you don’t see TextInputCanvas there, it didn’t load for some reason.

---

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [November 13, 2018, 10:37pm UTC](https://forum.xojo.com/t/textarea-linenumatcharpos-etc/46225/31 "2018-11-13T22:37:50Z")

</div>

1. I used the plugin that Martin pointed out… which was from MBS
2. I doubt this is an issue, since it is built/run locally… not a download… unless you mean it translocated the plugin itself?

- first off… TIC1 on WIndow1 implements the event “MouseDown”, but its superclass TIC does not declare such an event

- if I remove that then all h\*ll breaks loose

- TIC1.invalidateTextRects() // no such member

- TextInputCanvas // can’t find type with this name

- tons of “This item doesn’t exist”, “You cannot implement a non-existant Event”, “Type Mismatch”

117 total compile errors (not counting the MouseDown

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [November 13, 2018, 10:38pm UTC](https://forum.xojo.com/t/textarea-linenumatcharpos-etc/46225/32 "2018-11-13T22:38:54Z")

</div>

> [@414149:@Dave S](#):
>
> - TextInputCanvas // can’t find type with this name

That right there tells us the plugin didn’t load.

Edit:

[quote=414149:@Dave S]2. I doubt this is an issue, since it is built/run locally… not a download… unless you mean it translocated the plugin itself?  
[/quote]  
Xojo.app itself gets translocated sometimes and can’t access the Plugins folder.

---

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [November 13, 2018, 10:40pm UTC](https://forum.xojo.com/t/textarea-linenumatcharpos-etc/46225/33 "2018-11-13T22:40:45Z")

</div>

Ok… and how can I force that to happen… beyond putting it in the folder with the other Xojo supplied ones?

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [November 13, 2018, 10:41pm UTC](https://forum.xojo.com/t/textarea-linenumatcharpos-etc/46225/34 "2018-11-13T22:41:28Z")

</div>

> [@414152:@Dave S](#):
>
> Ok… and how can I force that to happen… beyond putting it in the folder with the other Xojo supplied ones?

That is the _only_ way to load a plugin. What are you doing right now?

Edit: You can nest it deep though. My plugins folder has a folder for MBS, Einhugur, and then project specific ones if necessary. So, it doesn’t need to be at the Xojo/Plugins level, but it must be somewhere within.

---

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [November 13, 2018, 10:45pm UTC](https://forum.xojo.com/t/textarea-linenumatcharpos-etc/46225/35 "2018-11-13T22:45:34Z")

</div>

that _IS_ what I did…

> [@414127:@Martin Trippensee](#):
>
> You need to install this [plugin](http://www.macsw.de/plugin/TextInputCanvas.zip) into the Plugins Folder!

> [@414134:@Dave S](#):
>
> I did… and restarted Xojo…

---

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [November 13, 2018, 10:48pm UTC](https://forum.xojo.com/t/textarea-linenumatcharpos-etc/46225/36 "2018-11-13T22:48:45Z")

</div>

FYI… according to the “About Dialog”. it isn’t loading ANY plugins

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [November 13, 2018, 10:49pm UTC](https://forum.xojo.com/t/textarea-linenumatcharpos-etc/46225/37 "2018-11-13T22:49:43Z")

</div>

> [@414155:@Dave S](#):
>
> FYI… according to the “About Dialog”. it isn’t loading ANY plugins

This is good news! It usually means that the IDE is translocated. Remove the quarantine flag and it should work.

Edit: `xattr -d com.apple.quarantine {Drop Xojo.App here}`

---

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [November 13, 2018, 10:59pm UTC](https://forum.xojo.com/t/textarea-linenumatcharpos-etc/46225/38 "2018-11-13T22:59:47Z")

</div>

Well… uh… no

- Xojo.App is on my “Drive 3”
- so I went to terminal, navigated to the directory where Xojo.App was
- typed in

xattr -d com.apple.quarantine xojo.app

and restarted Xojo… still no plugins (not even the Xojo supplied ones), but it did seem Xojo loaded a split second faster

For giggles, I went back to terminal and executed the command once again.  
This time it returned with

xattr: Xojo.app: No such xattr: com.apple.quarantine

So I assumed that meant it had worked the first time around

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [November 13, 2018, 11:03pm UTC](https://forum.xojo.com/t/textarea-linenumatcharpos-etc/46225/39 "2018-11-13T23:03:56Z")

</div>

I keep Xojo on my boot drive in /Applications. I’m not certain if running it from an external may be the source of your issue? At least you know what the issue is now! But I’m sorry, Dave, unfortunately I don’t know where to go from here in terms of debugging.

Maybe shoot hello@xojo an email?

---

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [November 13, 2018, 11:04pm UTC](https://forum.xojo.com/t/textarea-linenumatcharpos-etc/46225/40 "2018-11-13T23:04:16Z")

</div>

FYI… I have an almost working version based on a TextArea, a few canvas and a timer… Loaded 10,000 lines and it scrolls the text and linenumbers as smooth as silk 🙂

[Previous page](https://forum.xojo.com/t/textarea-linenumatcharpos-etc/46225.md?page=1)

[Next page](https://forum.xojo.com/t/textarea-linenumatcharpos-etc/46225.md?page=3)
