Ignore:
Timestamp:
Dec 17, 2024, 11:10:31 PM (11 days ago)
Author:
chronos
Message:
  • Added: Mouse API support.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Independent/Apps/Test/AppTest.pas

    r67 r68  
    2323var
    2424  Handle: THandle;
     25  Pos: TPoint;
    2526begin
    2627  with Context.Api do begin
     
    3738    SetWindowRect(Handle, Bounds(350, 150, 500, 300));
    3839    SetWindowVisible(Handle, True);
     40
     41    repeat
     42      Pos := GetMousePosition;
     43      SetWindowName(Handle, IntToStr(Pos.X) + ', ' + IntToStr(Pos.Y));
     44      Sleep(100 * OneMillisecond);
     45    until Terminated;
    3946  end;
    4047end;
Note: See TracChangeset for help on using the changeset viewer.