Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
urbanglowcam
Posts: 148
Registered: ‎10-30-2010
My Device: Bold 9930
Accepted Solution

Removing Spell Checker from TextArea

I'm using TextArea components in my app, and they are marking words with incorrect spelling, allowing the user to "correct" them. I would like to disable this if possible through QML.

 

Can anyone help with this? Sorry if it is very simple, but I was having trouble finding a clear answer in the Cascades documents.

 

Thanks

Developer
kylefowler
Posts: 526
Registered: ‎05-17-2009
My Device: 9900

Re: Removing Spell Checker from TextArea

Developer
urbanglowcam
Posts: 148
Registered: ‎10-30-2010
My Device: Bold 9930

Re: Removing Spell Checker from TextArea

I saw that, so I tried adding

 

input.flags: TextInputFlag.SpellCheckOff

 

to the TextArea. But it didn't make any difference. I still see the red underlines with certain words and can change them while using the app.

Developer
kylefowler
Posts: 526
Registered: ‎05-17-2009
My Device: 9900

Re: Removing Spell Checker from TextArea

possible bug in the OS maybe? I havent tried it out yet but thats the api you would use
Like all of my posts
Developer
urbanglowcam
Posts: 148
Registered: ‎10-30-2010
My Device: Bold 9930

Re: Removing Spell Checker from TextArea

Yeah, that's what I used. I thought I was doing it right. I hope it gets fixed if it is a bug.

 

Thanks

Developer
bcs925
Posts: 262
Registered: ‎07-13-2012
My Device: PlayBook, DA B, DA C, LE Z10 #102, Q10, Z30

Re: Removing Spell Checker from TextArea

As a work around if you set the input mode

 

inputMode: TextAreaInputMode.Chat

 There will be no spell check (red line) or ability for the user to change the word, however you do run the risk of getting unintended emoticons :smileyhappy:

---
Check out my BB10 Cascades Coding site: BBcascades.com & Cascades Blog: bbcascadescode.tumblr.com

My Built for BlackBerry app: The Dive Plan
Developer
urbanglowcam
Posts: 148
Registered: ‎10-30-2010
My Device: Bold 9930

Re: Removing Spell Checker from TextArea

lol cant you disable emoticons then?

Developer
bcs925
Posts: 262
Registered: ‎07-13-2012
My Device: PlayBook, DA B, DA C, LE Z10 #102, Q10, Z30

Re: Removing Spell Checker from TextArea

Not on chat mode, that's how you enable them (but it also disables spell check). As long as you don't have things like : and D or : and ) next to each other you should be fine.
---
Check out my BB10 Cascades Coding site: BBcascades.com & Cascades Blog: bbcascadescode.tumblr.com

My Built for BlackBerry app: The Dive Plan
Developer
urbanglowcam
Posts: 148
Registered: ‎10-30-2010
My Device: Bold 9930

Re: Removing Spell Checker from TextArea

Since I'm controlling the text, it shouldn't be a problem. But is the method Kyle and I were discussing a known bug? Have you seen this issue as well? I'm just making sure if it's an actual bug or just an error on my part.

Developer
bcs925
Posts: 262
Registered: ‎07-13-2012
My Device: PlayBook, DA B, DA C, LE Z10 #102, Q10, Z30

Re: Removing Spell Checker from TextArea

[ Edited ]

Actually here's the full solution:

 

                 TextArea {
                    text: "default mode teh feild words :)"
                    inputMode: TextAreaInputMode.Default
                    editable: false
                    input.flags: TextInputFlag.SpellCheck
//spell check still shows, so don't have nothing for inputMode or set to Default, also no emoticons
                }
TextArea { text: "text mode teh feild words :)" inputMode: TextAreaInputMode.Text input.flags: TextInputFlag.SpellCheckOff editable: false //no spell check, no emoticons }
TextArea { text: "chat mode teh feild words :)" inputMode: TextAreaInputMode.Chat input.flags: TextInputFlag.SpellCheck editable: false // with or without input.flags, no spell check but will get emoticons }

 

---
Check out my BB10 Cascades Coding site: BBcascades.com & Cascades Blog: bbcascadescode.tumblr.com

My Built for BlackBerry app: The Dive Plan