Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Using an ActiveX spell checking control – PB Docs 2022 – PowerBuilder Library

Using an ActiveX spell checking control – PB Docs 2022

Using an ActiveX spell checking control

ActiveX controls can be used to spell check text in a RichTextEdit
control. The supported ActiveX spell checking controls include VSSpell
from ComponentOne and WSpell from Wintertree Software.

You can use the SelectedStartPos and SelectedTextLength properties
of the RichTextEdit control to highlight the current position of a
misspelled word in a text string that you are parsing with a supported
ActiveX spell checking control. The following procedure uses an ActiveX
control to spell check the entire text of the current band of a
RichTextEdit control.

To spell check selected text in a RichTextEdit control:

  1. On a window with a RichTextEdit control, select
    Insert>Control>OLE from the window menu.

  2. Click the Insert Control tab of the Insert Object dialog box,
    select the installed ActiveX spell checking control, and click
    OK.

  3. Click inside the window in the Window painter to insert the
    ActiveX control.

    By default, the name of the inserted control is ole_n, where n
    = 1 when there are no other OLE controls on the window.

  4. Add a menu item to a menu that you associate with the current
    window and change its Text label to Check Spelling.

  5. Add the following code to the Clicked event of the menu item,
    where windowName is the name of the window containing the
    RichTextEdit and ActiveX controls:

  6. Select the ActiveX control in the Window painter and select
    ReplaceWord from the event list for the control.

  7. Add the following code to the ReplaceWord event script:

    The next time you run the application, you can click the Check
    Spelling menu item to spell check the entire contents of the current
    band of the RichTextEdit control.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x