This is a lister and editor of any kind of txt file (htm,html,prg,mpr,log,h,....)
Its based essentially on the windows notepad.exe who is an awesome tool for texts ANSI, UNICODE and UTF8 encodings.
Notepad supports all languages implemented in windows and its an universal tool.
VFP form as window can embed any kind of executables and makes it as child windows with apis SetParent and SePosWindow functions by playing with handles.
What is available for notepad is also available for word, excel,notepad++, ie,....but with some particular precautions.
API used for this purpose:
This application have a behavior as a txt files (or equivalent) viewer.the goal is to gather,list on a vfp grid all these filesand make them clickable and send to the notepad viewer. It scans a single folder (warning i dont make the search recursive)
The viewer have all PEM of notepad.exe.Even if you modify the texts in this viewer its not be saved anywhere.
A blank txt file has added to use as draft. Use the notepad standard rightclick to fire the contextuel menu (editing,formatting,unicode Right to left,...)
Test the unicode txt files added in the folder ytxt to see the power of notepad.
Warning : dont modify the font otherwise you modify the font of all your system txt files. As you the notepad menu is hidden for bad manipulations.
Can use same method for browser OLECONTROL IE as viewer and other pplications.
Use this code free of any charge but with any warranties.
Author: Yousfi Benameur El Bayadh Algeria
22 décembre 2014