Zum Inhalt

frmPointInfo.ShowForLeg

Eigenschaft Wert
Modul Forms
Klasse frmPointInfo
Typ Sub
Sichtbarkeit Public
Datei Forms/frmPointInfo.vb

Beschreibung

Befuellt das randlose Popup-Fenster mit allen Feldern eines ComputedFlightPlanLeg und zeigt es an der angegebenen Bildschirmposition an. Die Anzeige umfasst Ident, Typ, Phase, Position (Lat/Lon), Navigationsdaten (ARINC-Command, Kurs, Distanz, Via, Overfly), Constraints (Hoehe, Speed) und Vorhersagewerte (Altitude, IAS, GS, Mach, ETA, Fuel, Wind, Fuel Flow, VS, Perf-Quelle). Das Popup wird beim Loslassen der Maustaste geschlossen (Press-and-Hold-Verhalten).

Signatur

Public Sub ShowForLeg(leg As FlightPlan.ComputedFlightPlanLeg, screenPos As Drawing.Point)

Parameter

Name Typ Beschreibung Standard
leg FlightPlan.ComputedFlightPlanLeg Das Flugplan-Leg mit allen Navigations- und Vorhersagefeldern
screenPos Drawing.Point Bildschirmposition (Pixel), an der das Popup angezeigt wird

Ablaufdiagramm

flowchart TD
    A[Start] --> B[FormatLeg aufrufen]
    B --> C[Label-Text setzen]
    C --> D[Location = screenPos]
    D --> E[Show aufrufen]
    E --> F[Ende]

Aufgerufen von

Modul Sub/Function Kontext
frmMapView pnlMap_MouseDown Klick auf einen Layer-1-Waypoint-Dot oder benannten Pfadpunkt mit gematchtem Leg
frmSideView FormsPlot1 MouseDown-Handler Klick auf einen Punkt im Seitenansicht-Diagramm mit gematchtem Leg

Ruft auf

Modul Sub/Function Kontext
frmPointInfo FormatLeg Formatiert alle Leg-Felder als mehrzeiligen String (Consolas-Schrift)
Form Show Zeigt das Popup-Fenster an

Beispiel

' Popup fuer ein angeklicktes Leg anzeigen
Dim popup As New frmPointInfo()
Dim screenPoint = pnlMap.PointToScreen(clickLocation)
popup.ShowForLeg(selectedLeg, screenPoint)

Aenderungshistorie

Version Datum Aenderung
1.0 2026-04-16 Erstdokumentation