[fpc-pascal] WinCE api calls info

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Sep 13 22:57:38 CEST 2008


On Sat, 13 Sep 2008 22:44:43 +0200
"Paul" <paul.blommaerts at telenet.be> wrote:

> 
> ----- Original Message ----- 
> From: "Mattias Gaertner" <nc-gaertnma at netcologne.de>
> >> Mouse.CursorPos.X := 80;
> >> Mouse.CursorPos.Y := 80;
> 
> this is accepted in the IDE

Yes, because it is syntactically correct. But it only changes some
temporary stack variables. Nothing will happen.

 
> > Mouse.CursorPos:=Point(80,80);
> this isn't accepted

What error do you get?

procedure TMainForm.Button1Click(Sender: TObject);
begin
  Mouse.CursorPos:=Point(80,80);
end;


Mattias



More information about the fpc-pascal mailing list