![]() |
Inkompatible Typen TPoint und Integer
Hallo,
warum bekomme ich in dieser Zeile Code folgenden Fehler: Inkompatible Typen TPoint und Integer f ist vom Typ TForm f.ScreenToClient(Mouse.CursorPos.X).X müsste doch ein Integer und kein Point sein.
Code:
f.ScreenToClient(Mouse.CursorPos.X).X >= 10
|
AW: Inkompatible Typen TPoint und Integer
Zitat:
Delphi-Quellcode:
Die Function erwartet als PARAMETER ein TPoint, bei Dir wäre es allerdings der X-Wert eines T-Point, also fälschlicherweise ein Integer.
function ScreenToClient(const Point: TPoint): TPoint;
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:35 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz