void __fastcall TForm1::Label1MouseMove(TObject *Sender, TShiftState Shift, int X, int Y)
{
TLabel *pLabel;
TEdit *pEdit;
TButton *pButton;
pLabel = dynamic_cast <TLabel *> (Sender);
pEdit = dynamic_cast <TEdit *> (Sender);
pButton = dynamic_cast <TButton *> (Sender);
if (pLabel)
{
Label1->Caption = "Ich bin ein TLabel. Mein Name ist "" + pLabel->Name + """;
}
else if (pEdit)
{
Label1->Caption = "Ich bin ein TEdit. Mein Name ist "" + pEdit->Name + """;
}
else if (pButton)
{
Label1->Caption = "Ich bin ein TButton. Mein Name ist "" + pButton->Name + """;
}
}
Kategorien
-
Neueste Beiträge
- [ABAP] Benutzerparameter lesen/setzen
- [ABAP] CDS-View zur Anzeige von Änderungsbelegen
- Physik
- [ABAP] ABAP-Sprache aus T002, T002T und T002TX lesen (xco_cp_language)
- [ABAP] Workflow: Inhalt (Workitems) der MyInbox eines Users auflisten
- [ABAP] SAP-Office: Emails und Attachements lesen
- [SAP Fiori] Custom Fields zu Standard Fiori Apps hinzufügen
- [SAP Fiori] Erweiterungsmöglichkeiten von SAP Fiori Apps
- [RAP] Code-Beispiel für Feldprüfungen
- [ABAP] Datumskonvertierung: String zu internem SAP-Datums-Format