Using LEdit with Windows API
LEdit can be most easily used at the Windows API level. This
allow you greatest flexibility, you can unlock full its power,
but programming becomes most difficult, because you need to use
raw Windows messages instead of object-oriented technologies.
To use LEdit with the Windows API you'll need
LEDIT.DLL (for 16-bit Windows development) or
LEDIT32.DLL (for 32-bit Windows development).
The DLL have to be loaded into memory either statically or
dynamically. To link the DLL statistically you may call its
function LVer(). This will automatically load DLL
at the very begining of your application. Otherwise you may
load the DLL dynamically by using Windows API function
LoadLibrary().
Once the DLL is loaded, you get windows class
"LEdit" (for 16-bit) or
"LEdit32" (for 32-bit). If you're using
C/C++ then you may use constant LEDIT_CLASS defined
in LEDIT.H, which represent the right name
regardless of environment. You should pass the name of
the class as an argument of Windows API function
CreateWindow() or CreateWindowEx().
Once you have LEdit window you may flexibly control
it via EM_* messages described in
LEDIT.H. LEdit will in its turn
send you messages, responding to which you may control
syntax highlight, background
drawing and other processes you want. The default destination
for these messages is the parent window, but it may be easily
changed with message EM_SETHANDLE.
You see - working with LEdit is very easy!
To know more, see file LEDIT.H from the
Shareware package.
Thank you for your interest in LEdit
|