Author Topic: QE version 4m Update.  (Read 383 times)

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 6765
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
QE version 4m Update.
« on: July 30, 2019, 03:52:48 AM »
With thanks to all who have helped in tracking a very obscure bug introduced by Win 10, this version seems to have solved the problem of selecting a word at the start of a line by double clicking on the word with the mouse and getting the preceding CR as well. With yet another work around for Microsoft introduced bugs, the trick was to get the character range of the word, set it to the last character to defeat the Microsoft over-ride then set the correct range with the default code that has always worked correctly.

QE scans backwards from the caret position testing characters in a pre-built 256 char table, when it encounters a character that is not in the table, it record the position of the first acceptable character then scans forward to get the last acceptable character. This data is loaded into a CHARRANGE structure and the selection is set in the editor.

Tested over the last couple of days I can't get it to make the error any longer so its probably OK. For any with the patience, Richedit 3 has always been a very useful version as long as you can produce enough work arounds to avoid its bugs. This is another work around to add to the collection.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

sinsi

  • Member
  • *****
  • Posts: 1188
Re: QE version 4m Update.
« Reply #1 on: July 30, 2019, 12:54:33 PM »
 :thumbsup:
I can walk on water but stagger on beer bourbon.