Avulso

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: TsComboEdit #55721
    Avulso
    Participant

      I solved this with begin code:

      Code:
      if ((key = vk_up) or (key = vk_down)) then begin
      key := 0;
      sDBGrid3.SetFocus;
      end;

      Thank's everyone. 🙄

      in reply to: TsComboEdit #55715
      Avulso
      Participant

        My keydown action:

        Code:
        procedure TFormCadProdutos.sComboEdit1KeyDown(Sender: TObject; var Key: Word;
        Shift: TShiftState);
        begin
        if ((key = vk_up) or (key = vk_down)) then
        sDBGrid3.SetFocus;
        else if (key = VK_ESCAPE) then begin
        sEdit19.Clear;
        sComboEdit1.Clear;
        end;
        end;

        The VK_ESCAPE is ok, the problem is on set focus where arrow up or down pressed, but this action not set focus, i need to set manually.

        Examples

        sComboEdit focused;

        PA7F17c.jpg

        sDBGrid focused;

        IUh0qhA.jpg

      Viewing 2 posts - 1 through 2 (of 2 total)