Fórum dectar se shift esta pressionada #146867

18/03/2003

0

como dectar que a tecla shift esta apertada?
seria if dbgrid1.shift = ssShift then
begin
processamento
end?
???
ou como???


Anonymous

Anonymous

Responder

Posts

18/03/2003

Debora

tenta o seguinte:

No evento OnKeyPress

if key = chr(16) then begin
//processamento
end;


Responder

Gostei + 0

18/03/2003

Bilouro

tenta o seguinte: No evento OnKeyPress if key = chr(16) then begin //processamento end;



ValueMeaning

ssShiftThe Shift key is held down.
ssAltThe Alt key is held down.
ssCtrlThe Ctrl key is held down.
ssLeftThe left mouse button is held down.
ssRightThe right mouse button is held down.
ssMiddleThe middle mouse button is held down.
ssDoubleThe mouse was double-clicked.

procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if shift =ssShift then
// xxxx
end;


[]´s


Responder

Gostei + 0

18/03/2003

Anonymous

no evento onkeydown
if tbKeyIsDown(VK_SHIFT) then


Responder

Gostei + 0

Utilizamos cookies para fornecer uma melhor experiência para nossos usuários, consulte nossa política de privacidade.

Aceitar