Fórum WMKey #322812
05/06/2006
0
Alguem pode me ajudar??
Rudá
Curtir tópico
+ 0Posts
05/06/2006
Massuda
// troca as posições dos dois primeiros itens do listbox SeuListBox.Items.Exchange(0, 1);
Gostei + 0
05/06/2006
Rudá
Gostei + 0
05/06/2006
Massuda
type TSeuListBox = class... ... protected procedure KeyDown(var Key: Word; Shift: TShiftState); override; ... procedure TSeuListBox.KeyDown(var Key: Word; Shift: TShiftState); begin // talvez tenha que verificar o valor de Shift! // exemplo de como tratar seta para cima/para baixo if Key = VK_UP then begin ... trata seta para cima... Key := #0; // descarta end else if Key = VK_DOWN then begin ... trata seta para baixo... Key := 0; // descarta end; inherited KeyDown(Key, Shift); end;
Gostei + 0
05/06/2006
Rudá
Gostei + 0
05/06/2006
Massuda
Gostei + 0
05/06/2006
Rudá
Gostei + 0
07/06/2006
Rudá
Gostei + 0
08/06/2006
Massuda
Gostei + 0
08/06/2006
Rudá
Não tem nenhum tratamento!
Gostei + 0
08/06/2006
Massuda
Gostei + 0
08/06/2006
Rudá
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)