Page 1 of 1

RTF Spell Checker

Posted: Mon May 22, 2023 3:44 pm
by TimStone
I wanted to revisit this because it never really was answered in the past.

With our included RTF control, we can turn on spell checking. It will underline words that are not spelled correctly. However, it does not have any way ( that I can find ) to get suggested correct spellings.

Usually in windows, when a word is mis-spelled, there are suggested correct words. I cannot get them to show, or select.

Is anyone using the full spell checking capability with the RTF control, and if so, how do you activate it ?

I am using the latest version of FWH.l

Re: RTF Spell Checker

Posted: Tue May 23, 2023 5:30 am
by Antonio Linares
Dear Tim,

Have you tried to right click on the underlined words ?

Re: RTF Spell Checker

Posted: Tue May 23, 2023 2:13 pm
by TimStone
Antonio Linares wrote:Dear Tim,

Have you tried to right click on the underlined words ?
I have tried every click combination. Single and double , right snd left


Sent from my iPhone using Tapatalk

Re: RTF Spell Checker

Posted: Tue May 23, 2023 5:03 pm
by TimStone
The other feature I would really appreciate is for the ability to lock the button bar in place at the top of the edit box. In showing a client how to use this feature they found the need to mouse to the top to activate the bar, then perform an action, was very annoying. It is not common for a bar to disappear ( though it is an option, I know nobody who uses that ability in a word processing program ).

Re: RTF Spell Checker

Posted: Tue May 23, 2023 7:44 pm
by TimStone
I've spent time experimenting, and researching, this.

1). If I open a text in the RTF5 editor, and then turn on spell checking, it will underline words, as they are typed, that are not spelled correctly.

2). If I try to setup the spell checker to be turned on by default, the checkmark shows on the ( right click ) menu, but it will not actually catch misspelled words.

It only works correctly when you turn it on once the control is activated.

Based on searches of the internet, it would appear that the control may only underline misspelled words, but not offer suggested alternatives.

Has anyone actually used this control and seen it display the properly spelled words ? Or am I simply the only one currently using RTF with Harbour/ FWH / MSVC ++ ???

Re: RTF Spell Checker

Posted: Tue May 23, 2023 9:15 pm
by TimStone
From ChatOpenAI ... which I know many use. I just found out that its data is based on info available prior to 2021 ... and it doesn't know about Windows 11 or VS 2023.
FiveWin is a framework for developing Windows applications using the xBase programming language, which is primarily associated with dBase and Clipper. FiveWin includes its own implementation of an RTF (Rich Text Format) edit control, which is designed to provide text editing and formatting capabilities within FiveWin applications.

The RTF edit control in FiveWin allows users to input and edit text while supporting various text formatting options such as font styles, colors, sizes, alignments, and more. It provides a WYSIWYG (What You See Is What You Get) interface, allowing users to see the text with its applied formatting as they edit.

The features and capabilities of the RTF edit control in FiveWin may include:

Text editing: Users can enter, delete, and modify text within the control.
Text formatting: The control allows applying formatting options such as bold, italic, underline, strikethrough, subscript, and superscript to selected text or the entire document.
Font selection: Users can choose different fonts for their text.
Paragraph formatting: The control may support alignment options (left, right, center, justified), indentation, and line spacing settings.
Bulleted and numbered lists: Users can create bulleted or numbered lists within the control.
Copy, cut, and paste: Users can perform clipboard operations to copy, cut, and paste text within the control.
Undo and redo: The control may support undo and redo functionality to revert or restore changes made to the text.
Spell checking: While the specific implementation may vary, the RTF edit control in FiveWin might provide spell checking capabilities to assist users in identifying and correcting spelling errors.
Printing: The control may support printing the formatted text document.
It's important to note that the exact features and capabilities of the RTF edit control in FiveWin may depend on the specific version and configuration of the framework you are using. Therefore, it's recommended to refer to the official FiveWin documentation or resources provided by the framework's developers for more detailed information on how to use and customize the RTF edit control within your FiveWin applications.

Re: RTF Spell Checker

Posted: Wed May 24, 2023 7:26 pm
by cnavarro
TimStone wrote:The other feature I would really appreciate is for the ability to lock the button bar in place at the top of the edit box. In showing a client how to use this feature they found the need to mouse to the top to activate the bar, then perform an action, was very annoying. It is not common for a bar to disappear ( though it is an option, I know nobody who uses that ability in a word processing program ).
Implemented for the next version
Also, I would like to replace the current buttonbar with another one with a more modern style.

Re: RTF Spell Checker

Posted: Wed May 24, 2023 9:10 pm
by TimStone
That sounds great.

Since we go many months between FWH updates, I would be happy to test the new implementation when you have it ready. I have a very nice implementation of RTF already in invoice printouts.