Avec ce code il ne me récupère que le message long, Application.Hint est toujours égal à 'long' ?
Comment récupérer les 2 messages ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 procedure TForm1.DisplayHint(Sender: TObject); begin Label1.Caption := GetShortHint(Application.Hint); Label2.Caption := GetLongHint(Application.Hint); end; procedure TForm1.FormCreate(Sender: TObject); begin Button1.Hint := 'Short|long'; Application.OnHint := DisplayHint; end;
Merci d'avance !
Partager