Jump to content

eduardosuruagy

uniGUI Subscriber
  • Posts

    845
  • Joined

  • Last visited

  • Days Won

    10

Posts posted by eduardosuruagy

  1. 7 hours ago, Sherzod said:

    Hi,

    Something like this.

    
    function afterrender(sender, eOpts)
    {
        var me = sender;
        var view = me.normalGrid.getView();
        view.tip = Ext.create('Ext.tip.ToolTip', {
            target: view.getId(),
            delegate: '.x-grid-cell',
            trackMouse: true,
            listeners: {
                beforeshow: function updateTipBody(tip) {
                    return me.cellTip ? tip.update(me.cellTip) : false;
                }
            }
        });
    }
    
    procedure TMainForm.UniFormCreate(Sender: TObject);
    begin
      UniStringGrid1.JSInterface.JSProperty('cellTip', ['tip']);
    end;
    
    procedure TMainForm.UniButton1Click(Sender: TObject);
    begin
      UniStringGrid1.JSInterface.JSAssign('cellTip', ['tip1']);
    end;

    But you also need to think about these form events:
    deactivate and activate, which are called upon activation, deactivation tooltip!

    Obrigado!!

  2. 4 minutes ago, Marlon Nardi said:

    Sim você consegue fazer com este mesmo exemplo, você vai utilizar o index de sua Column, neste seu caso o index vai iniciar na posição 5
    --
    If you can do the same example, you can use your column index, in which case the index will start at position 5

    
        '                if (column.dataIndex == ''5'') { '+
        '                    tip.update('' '+
        '                              <b>Descrição Coluna 5</b> '' + record.data[parseInt(5)] + '' '+
        '                               ''); '+
        '                } '+
    
        '                if (column.dataIndex == ''6'') { '+
        '                    tip.update('' '+
        '                              <b>Descrição Coluna 6</b> '' + record.data[parseInt(6)] + '' '+
        '                               ''); '+
        '                } '+


     

    Eu queria fazer de uma forma dinâmica, tipo assim, qd abrir no celular ou tablet eu iria deixar as colunas invisíveis e mostrar elas como uma dica. 

    Exemplo: Tenho um grid com 10 colunas ai quando abro no tablet eu deixaria as 5 primeiras colunas visíveis e as outras 5 eu colocaria elas como uma dica. Sendo que isso eu tenho que fazer em vários grids ai se conseguisse colocar no formulário padrão seria melhor. 

     

     

  3. 20 minutes ago, Marlon Nardi said:

    image.png.1d11e0e7dbe0cc9f579ffa3d4e707958.png

     

    Add in UniDBGrid -> ClientEvents.ExtEvents.Values['viewready'] 
    Sample:

    
      dbg.ClientEvents.ExtEvents.Values['viewready'] :=
        'function viewready(sender, eOpts) '+
        '{ '+
        '    sender.view.tip = Ext.create(''Ext.tip.ToolTip'', { '+
        '        target: sender.view.el,'+
        '        delegate: sender.view.cellSelector, '+
        '        trackMouse: true, '+
        '        showDelay: 50, '+
        '        hideDelay: 50, '+
        '        renderTo: Ext.getBody(), '+
        '        listeners: { '+
        '            beforeshow: function updateTipBody(tip) { '+
        '                gridColums = sender.view.getGridColumns(); '+
        '                column = gridColums[tip.triggerElement.cellIndex]; '+
    
        '                record = sender.view.getRecord(tip.triggerElement.parentNode); '+
    
        '                if (column.dataIndex == ''3'') { '+
        '                    tip.update('' '+
        '                              <b>Descrição</b> '' + record.data[parseInt(3)] + '' </br> '+
        '                              <b>Categoria de Despesa</b> '' + record.data[parseInt(11)] + ''  '+
        '                               ''); '+
        '                } else { '+
        '                    return false; '+
        '                } '+
        '            } '+
        '        } '+
        '    }); '+
        '} ';

     

    Oi Marlon, ótima dica essa...

    Eu queria saber se tem como fazer uma alteração da seguinte forma, tenho um grid com 10 colunas ai quero deixar as colunas invisíveis a partir da 5º, ai eu queria colocar essa dica nas colunas visíveis. Entendeu?

     

  4. On 2/24/2017 at 12:15 PM, Stemon63 said:

    Hi Farshad, 

     

    In my constant search for optimum performance on complex forms and documents of different kind and sizes, I contacted Gnostice and spoke of UNIGUI power.

    They have powerful components for the management of native PDF and document management in Delphi.
    In my attempt to be able to display dynamic documents with Unigui, (containing dynamic data with filler form) other than simple forms with a lot of components, I got this video from Gnostice people. All using Delphi.
    Any idea or comment is welcome. 
    :-)

     

    Stefano Monterisi

    Sesamo Software Spa

     

     

    https://youtu.be/KuhP7E9jhl0

    
    
     

    I was unable to install on Berlin 10.1

  5. On 10/8/2019 at 2:08 PM, Hayri ASLAN said:

    Hello

    Please change H_OnCellClick in UniBasicGrid.pas to below code for now. We will add this to new build.

      

    
    procedure TUniBasicGrid.H_OnCellClick(This: TJSObject; EventName: string; Params: TUniStrings);
    begin
      if Assigned(OnClick) then
      begin
        if CheckBoxSelect and (Params['c'].AsInteger=0) then
          Exit;
        FSelectionInvalid := True;
        try
          if Clickable(FCurrCol, FCurrRow) then
            OnClick(Self);
        finally
          FSelectionInvalid := False;
        end;
      end;
    end;

     

    Hasn't that been adjusted yet? I have to adjust it in all versions that I update from Unigui. How can I leave it fixed?

  6. On 25/02/2020 at 13:48, robinhodemorais said:

    Obrigado pela ajuda, você fará alguns testes, mas ele não funcionará com o Hypper Server, você não poderá colocá-lo em produção, mas, em qualquer caso, será usado para estudos ...

    Uma dúvida, você conhece os recursos dos eventos onHttpDocument e onHttpCommand?

    Robinho vc conseguiu alguma coisa sobre esse tópico aqui?

×
×
  • Create New...