Author Topic: Spellchecker in the shortcuts box  (Read 2197 times)

Rasa Dhukhur

  • Traveller
  • *
  • Posts: 16
    • View Profile
    • MyPlane
Spellchecker in the shortcuts box
« on: December 18, 2012, 06:52:57 pm »
I made a change once that allowed me to add a spellchecker to the shortcut popup box. However, I have forgotten what I did.

Anyone know how?

Aiwendil

  • Hydlaa Citizen
  • *
  • Posts: 463
    • View Profile
Re: Spellchecker in the shortcuts box
« Reply #1 on: December 19, 2012, 06:20:09 am »
*grins* Well, I guess with that I can help:

Open data/gui/shortcutwindow.xml in a text editor.

Find the widget for the commands ("<widget name="CommandBox" factory="pawsMultilineEditTextBox">") and then add a "<spellChecker enable="true" r="255" g="0" b="0"/>" line to it. (Can see an example of this in data/gui/bookwriting.xml).

With the "enabled" you can define if you want spellchecker support...so if you want to disable it again you don't have the remove the whole line but only need the change this to "false". The "r", "g," and "b" define the color used for typos..in the example pure red.

This way you can enable the spellchecker for every "pawsEditTextBox" and "pawsMultilineEditTextBox". So if you want spellchecker support in quest notes or guild description...no problem either.

Oh..and as always...sorry windows users, I think after two years the spellchecker still didn't make it to your platform...touch luck.

Edit: Link to my original introduction to the spellchecker: http://www.hydlaaplaza.com/smf/index.php?topic=40477.0
« Last Edit: December 19, 2012, 06:27:40 am by Aiwendil »

Rasa Dhukhur

  • Traveller
  • *
  • Posts: 16
    • View Profile
    • MyPlane
Re: Spellchecker in the shortcuts box
« Reply #2 on: December 19, 2012, 07:38:20 am »
ah, works a charm. Thank you.