All right, I put in "RichEdit" in my Uses clause and that solved the problem.
Sorry for responding to myself and solving my own problem - maybe it will be of help to someone else searching the internet though.
In the above code I meant button1click, sorry for the confusion.
In other words, I am having problems with the following code:
//this below works with no errors
procedure TForm1.Button1Click(Sender: TObject);
var
handle: HWND;
begin
handle:=3036; //handle of the edit box...
I'm using Delphi 6.
This is regarding sending API commands in delphi!
I am wondering why "EM_FINDTEXT" causes an error in delphi. "EM_SETSEL" does not cause an error, and other "EM_"'s and "WM_"'s work. I can only get certain "EM_"s to work.
EM_FINDTEXT causes the following error in Delphi...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.