用代碼切換 Edit 不同的鍵盤樣式:
procedure TForm1.Button1Click(Sender: TObject); begin Edit1.KeyboardType := TVirtualkeyboardType.Default; Edit1.SetFocus; end; procedure TForm1.Button2Click(Sender: TObject); begin Edit1.KeyboardType := TVirtualkeyboardType.NumberPad; Edit1.SetFocus; end;