Jump to content

Kalvaitir

Members
  • Posts

    29
  • Joined

  • Last visited

Posts posted by Kalvaitir

  1. Added the following functions:

     

    Keydown

     

    function keydown(e)

    {

    if (e.keyCode == 9) {

    this.panel.getSelectionModel().setCurrentPosition({row: this.panel.uniRow+1, column: 4})

    }

    }

     

     

    Reconfigure

     

    function reconfigure(sender, store, columns, oldStore, the, eOpts)

    {

    for (var i = 0; i < columns.length; i++) {

    columns.editor = {selectOnFocus: true};

    };

    columns[1].editor = {selectOnFocus: true, listeners: {

    specialkey: function(field, e) {

    if (e.getKey() == e.TAB) {

    sender.getSelectionModel().setCurrentPosition({row: sender.getSelectionModel().getCurrentPosition().row, column: 5});

    }

    }

    }

    };

    }

     

     

    It did not work. When the cell is being edited, it goes to the first column and not the fifth column.

  2. Primeiro vc faz uma procedure com o evento setfocus!

     

    procedure TMainForm.Resposta1(Sender: TComponent; Res: Integer);

    begin

    edit1.SetFocus;

    end;

     

    E depois usa a procedure no showmessage no segundo parâmetro!

     

    showmessage('Mensagem de texto!',Resposta1);

  3. The reconfigure code did not work. The cursor moves to column 4, then to column 1, then column 4, then column 3.

     

    How could I do to combine these two functions:

     

     

    function reconfigure(sender, store, columns, oldStore, the, eOpts)

    {

    columns[1].editor = {listeners: {

    specialkey: function(field, e) {

    if (e.getKey() == e.TAB) {

    sender.getSelectionModel().setCurrentPosition({row: sender.getSelectionModel().getCurrentPosition().row, column: 5});

    }

    }

    }

    };

    }

     

    function reconfigure(sender, store, columns, oldStore, the, eOpts)

    {

    columns[1].editor = {selectOnFocus: true};

     

    // for all columns

    for (var i = 0; i < columns.length; i++) {

    columns.editor = {selectOnFocus: true};

    }

    }

     

    Thank you!

  4. In uniGUI 0.95, I used the code:

    showmessage('Digite um CNPJ válido!',CallBack1);

     

    After installing uniGUI 0.96, an error occurred in this code:

    There is no overloaded of 'ShowMessage' that can be called with these arguments

     

    How could I solve?

  5. Farshad Mohajeri sorry, but I still can not understand.

     

    Do you have any examples or can give more detail?

     

     

    I tried to make:

     

    procedure TMainForm.UniFormAjaxEvent(Sender: TComponent; EventName: string;

    Params: TStrings);

    begin

    if SameText(EventName,'SessionClosed') then UniSession.Terminate();

    end;

     

    OR

     

    procedure TMainForm.UniFormAjaxEvent(Sender: TComponent; EventName: string;

    Params: TStrings);

    begin

    if SameText(EventName,'SessionClosed') Then

    begin

    UniSession.Terminate();

    UniSession.UniApplication.Terminate();

    end;

    end;

     

     

    AND MainForm > ClientEvents > ExtEvents, I created a function that is attached:

     

     

    The above code does not work in Google Chrome, Internet Explorer only worked if I display the alert, if I comment the alert does not work.

     

    I'm checking sessions on localhost: 8077/server

    post-1842-0-42419300-1406047439_thumb.png

  6. Hello!!

     

     

    I observed that when I click on cell of the uniDBGrid to edit, the contente is not selected, the cursor is at the end of the text.

     

    How do I come up with the selected text?

     

     

  7. I observed that if I click on the close of the browser, the uniGUI does not end the session.

     

    The session ends when it exceeds the timeout it.

     

    Has anyone had this experience?

  8. Em relação ao dbgrid, gostaria de saber como selecionar uma determinada coluna, o que eu quero fazer é com que se o usuário teclar tab, ele vai pra uma determinada coluna do dbgrid. Mas tô vendo que tem pouco material sobre isso. =(

  9. Olá, pessoal!

     

    Estou usando o dbgrid e quando clico na célula para editar, observei que ele não vem selecionado o conteúdo para editar, o cursor vem no final do texto, será que teria como vim com o texto selecionado?

×
×
  • Create New...