1. Tamas Polgar
  2. PowerBuilder
  3. Monday, 18 July 2022 14:04 PM UTC

Hello

 

PowerBuilder 2019 R3 Build 2728

 

Is there any way using the webbrowser control (cef) to switch on/off spellcheck?

Some users have spellcheck and some users don't. What does it depend on?

How can I hide the red wavy lines in textbox and textareas? 

 

Thanks

Tamas Polgar Accepted Answer Pending Moderation
  1. Wednesday, 20 July 2022 13:59 PM UTC
  2. PowerBuilder
  3. # 1

Thank you for your answers.

 

What I have found is the following:

Disable or enable spellcheck in Edge or Chrome has no effect on PB web browser spellcheck.

Users with internet connection have spellcheck and users without internet connection (reach only local servers) have no spellcheck.

Navigate PB web browser to chrome://version to see the command line parameters.

I found that the default langauge is english: --lang=en-US.

The dictionary file is located in this folder: C:\Users\username\AppData\Local\CEF\User Data\Dictionaries\en-US-8-0.bdict

Running the deployed exe with a given lang parameter (i.e --lang=hu-HU) we can change the loaded dictionary file.

The given dictionary file will be downloaded and used for spellcheck.

To disable spellcheck in the PB web browser run the deployed exe with the following parameter: --disable-spell-checking

 

Best regards, Tamas

Comment
  1. John Fauss
  2. Wednesday, 20 July 2022 14:30 PM UTC
Very nice work, Tamas. Thank you for sharing what you learned with the Community!
  1. Helpful
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Monday, 18 July 2022 18:58 PM UTC
  2. PowerBuilder
  3. # 2

Hi, Tamas -

According to the web articles I have seen, Microsoft worked with the Chromium team to enable use of the Microsoft Spellcheck API when the Chromium engine is used on any Windows 8.1 and higher system. This applies to all Chromium-based browsers (Edge, Chrome, PB web browser control, etc.) This functionality is enabled by default.

   https://winaero.com/microsoft-adds-new-windows-spellchecker-api-to-all-chromium-browsers/

I suggest you see if your users that do NOT have the spellcheck functionality in PB web browser working may have disabled spellcheck in Edge (in the "Languages" heading in Settings in Edge) or other Chromium-based browser, for I suspect if it is disabled in the Edge browser it may be disabled in other Chromium-based instances as well.

   https://windowsloop.com/disable-spell-checking-in-edge-browser/

Let us know what you find?

Best regards, John

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.