procedure TForm1.Timer1Timer(Sender: TObject); var Ctrl: TControl; begin Ctrl := FindVCLWindow(Mouse.CursorPos); if Ctrl <> nil then Caption := Ctrl.Name; end;
procedure TForm1.Button3Click(Sender: TObject); var Ctrl: TControl; begin Ctrl := FindVCLWindow(ClientToScreen(Point(100, 50))); if Ctrl <> nil then Caption := Ctrl.Name; end;
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionprocedure TForm1.Button1Click(Sender: TObject); begin if not (blablabla = xxx) then begin {autres instructions} ... ... end; //if end;