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
- Wissensmanagement
- [CSS] Farbschemen
- [CSS] Frameworks
- [ABAP] SPRO-Customizing – Anzeigen und Ändern eines Projektplans
- Software-Alternativen
- [SVG] SVG-Viewer und Editoren
- [SVG] SVG-Icon-Bibliotheken
- [CSS] Themes: Farbauswahl
- [TypeScript] Projekt im Visual Studio Code mit React, Typescript und Vite erstellen
- [ABAP] SALV: Events abfangen beim Klick auf die ALV Funktions-Buttons am Beispiel des Setzens von Filtern