dcsimg
Results 1 to 5 of 5

Thread: VB6 - Ink Editor

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2012
    Posts
    799

    VB6 - Ink Editor

    InkEditor has been updated to fix several minor bugs.It is essentially TextEditor with the TextBox replaced with an Ink Edit Control. I use TextEditor for editing log files, and InkEditor for creating text messages.

    InkEditor allows the use of Spell Checking, but Spell Checking introduces it own set of problems. Spell checking in non-wrap mode did not make a lot of sense to me, so it only works in Word Wrap mode. While defaulting to non-wrap mode made sense in TextEditor, defaulting to wrap mode made more sense in InkEditor. Defaulting to Spell Check when loading text from a file causes some of the misspelled text to be automatically corrected, and this is not necessarily what the user may want. But when entering new text, defaulting to spell check would be an advantage. So InkEditor will check the KeyDown event for existing text, and if blank it will enable Spell Checking. Because Spell Checking on Win 10 only checks keyboard entered data (paste is treated as keyboard data), enabling Spell Check on text loaded from file uses Ctrl-A, Ctrl-X, & Ctrl-V (Select All, Cut, & Paste).

    There are still some kinks in the printer routine with regard to printer settings to work out. I will update when I get access to a printer.

    J.A. Coutts

    Updated: 06/15/2018
    Bug Fix: 12/19/2018
    Attached Files Attached Files
    Last edited by couttsj; Dec 19th, 2018 at 04:28 PM.

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2012
    Posts
    799

    Re: VB6 - Ink Editor

    Finally got around to testing it on Win 10, and a major problem surfaced with the spell checking. It appears that on Win 10 it only spell checks text that is input via the keyboard. On Win 8.1, it spell checks everything added to the control regardless of source. How do I get Win 10 to behave the same way?

    J.A. Coutts

    Edit: The only work around that I have found for this problem on Win 10 is to:
    1. Select all
    2. Cut
    3. Paste
    That should apply spell check to text loaded from a file.
    Last edited by couttsj; Apr 18th, 2018 at 01:23 AM.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2012
    Posts
    799

    Re: VB6 - Ink Editor

    InkEditor has been updated to fix several minor bugs.

    J.A. Coutts

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2012
    Posts
    799

    Re: VB6 - Ink Editor

    I finally got my printer working, and not surprisingly, there were problems with the printer setup in Ink Editor.

    But first I should explain why it took so long to get my printer working. It is an older laser printer that has a parallel port and a USB port. I never could get the USB port to work, and the only computer I have with a parallel port is a Server 2000. It used to work just fine, but for days I struggled to get both Win 8.1 and Win 10 to recognize it. I was aware that a user had to have the correct UserID/Password in the server for seamless operation, but previously I would be prompted to enter the correct credentials. Such is no longer the case in Win 8.1 & 10. They simply will not recognize that the shared printer exists until the correct UserID/Password is entered into the server. And the other issue present with Win 10 is that it will not use SMB1 by default.

    Ink Editor now allows you to configure the printer and save the configuration. I cannot pretend that I am any kind of expert on printer logic, so suggestions are welcome. In addition, the file buffer issue discovered in Text Editor was addressed.

    J.A. Coutts

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2012
    Posts
    799

    Re: VB6 - Ink Editor

    Ran into a problem with the "Find" function that also affected the "Replace" function. It is a problem I am familiar with, and was an oversight on my part. The InkEdit control only supports a CR instead of a CRLF when using the "EM_SETSEL" function. This results in the selected text being out by 1 character for every line prior to the text. My work around is to copy the text to a temporary string, replace all CRLF's with CR, conduct the search on the temporary string, and then use the result to select the text in the InkEdit control.

    Is there an API replacement to this work around?

    J.A. Coutts

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width