Using LEdit with Borland Pascal OWL
We don't support Borland Pascal OWL, because it's rapidly replaced
by Delphi, however we don't think Pascal
is dead. Here are few tips on how to work with LEdit.
First of all, you need to include LEDIT.TPW to
the uses clause:
uses WinProcs, WinTypes, Win31, LEdit;
Once you have done it, you get LEdit working. Now you should
create object-oriented wrapper around it. It's very easy. You just
have to override GetClassName method:
type
PLEditWindow = ^TLEditWindow;
TLEditWindow = object(TWindow)
function GetClassName: String; virtual;
{ other functions }
end;
function TLEditWindow.GetClassName;
begin
GetClassName = 'LEdit';
end;
That's all. You have created LEdit object (You may also inherit it from
TControl if you want). You may now call Windows API
SendMessage to control LEdit behaviour, or you may
create member functions/procedures to do it.
LEdit will work for you!
Otherwise, you may want to switch to Delphi and unlock full power
of Delphi VCL wrapper.
Thank you for your interest in LEdit
|