bjr a tous le monde,
j'ai une db grid dans lequel je veux désactiver la touche bas du clavier s'il y a un condition précise
voila le code
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 procedure Tfrmmouvement.GrilleKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); begin if key=VK_DOWN then begin//7 VOILA La CONDITION if (grille.DataSource.DataSet.FieldValues['MVT_N_DEBIT']='0,00') and (grille.DataSource.DataSet.FieldValues['MVT_N_CREDIT']='0,00') then begin //9 //VOILA LE CODE DE D2SACTIVER LA TOUCHE BAS Beep; key:=0; Exit; end // end;//7 end;
mais ce code ca marche pas,et merci d'avance
Partager