"find" now finds key words in INCLUDE files (with Capital letters) and shows them in the find window. But "Replace" can't replace them in the include files.
Thanks, Alex. Version 12 May has a warning now, please let me know if that is the right choice. It would be technically possible to replace strings in the include files, but updating include files is not something I would support - too risky.
Among the other changes:
- By holding Ctrl and moving the mousewheel, the RichEdit control can zoom the display. At my age and my eyesight, I need 110%, but there may be people who have brilliant eyes and want to see more code. Pressing Alt Z saves the current zoom level; this is a global setting, i.e. RichMasm remembers this when opening
any document (it also affects the font in the Find listbox, but only after restarting RichMasm).
- introduced a new Event variable VKey2:
Event Key
Switch_ VKey2
Case_ VK_LEFT: wAddWin$ hMyEdit=" текст", 44 ; insert Unicode text at position 44
Case_ VK_RIGHT: AddWin$ hMyEdit=" missed", 50, 57 ; insert Ansi text at position 50, overwrite 7 bytes
Case_ VK_UP
Let My$=FileRead$("UnicodeIsEasy.asc")
wAddWin$ hMyEdit=My$
Case_ VK_DOWN: <wAddWin$ hMyEdit=wRec$(cfm$("\nВведите\nтекст\nздесь\n"))> ; append & use cfm$ for \n escapes
Endsw_Until now, VKey was available to test for e.g. VK_SPACE or whatever; and the rule was that a positive VKey comes from the main application, a negative one (.if VKey==-VK_SPACE) from the riched control. Now you can catch a keypress independently of whether the control has the focus or not. Full example attached.
The snippet above also demonstrates new optional arguments for AddWin$:
AddWin$ hRichEdit="Text" [, startpos][, endpos]
The
online doc for AddWin$ says it's normal edit controls only, but that is wrong. I should update that page...