please help me on this.
i would need to use the arrow keys to move the focus of a button to another. 
those buttons are arranged in a matrix. Assuming the current focus is on button 
at row 5 and column 5 and when the vk_up is pressed, the focus will be changed 
to the one in row 4 col 5.

i'd tried using the following code :-

procedure TForm1.btn000KeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
var i : integer;
begin
  if Key = vk_down then
    begin
      for i := 0 to 7 do
      SelectNext(ActiveControl, true, true);
    end;
end;

But somehow the default is in control and move the focus to the next one to the 
right only.

thanks in advance.

daniel lee
singapore.
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to