Jump to content

eduardosuruagy

uniGUI Subscriber
  • Posts

    831
  • Joined

  • Last visited

  • Days Won

    10

Posts posted by eduardosuruagy

  1. 4 minutes ago, Sherzod said:

    UniMainModule -> Evento OnBrowserClose?

    Using the hyper server I can not tell if the Node is zero used the variable "NodeZero"? Can you tell if there are more Node created? Because if there is more than zero I know there are other open sections.

    I am trying to make a database comparison and can not have any active connection at the time of the comparison.

  2. 7 minutes ago, Farshad Mohajeri said:

    Atualmente, a única maneira de conseguir isso é criar uma tabela de banco de dados e criar uma entrada quando uma nova sessão é criada. Da mesma forma, você excluirá a entrada quando a sessão for liberada.

    I already do this, but have a problem, when the user closes the browser in a raw way there is no way to delete the section.

  3. 3 minutes ago, Sherzod said:

    Oi,

    Você já viu esta demo ?:

    
    

     

    I've seen the example, I'm using Hyperserver and would like to run a routine when I have no active users and while this routine is running I can not let anyone access the system, understand?

    I do not know if this example works the same way using Hyper Server.

  4. image.thumb.png.951c28cedc75697f1b42ac0c17c9d261.png

     

    I made a calendar using StringGrdi and I logged in a table from my database a few holidays, I would like to give a select on my table and on the respective dates I put a hint with the holiday description.

    As it is in the attached image, the cells in red are holidays, when I hover the mouse over it I wanted it to show the name of the holiday!

     

  5. 5 hours ago, Sherzod said:

    Maybe you wanted like this?

    UniStringGrid -> ClientEvents -> ExtEvents -> function afterrender:

    
    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) {
                    var tipGridView = tip.target.component;
                    var record = tipGridView.getRecord(tip.triggerElement);
                    tip.update(record.get(tip.triggerElement.cellIndex + me.lockedGrid.getColumns().length));
                }
            }
        });
    }

     

     

    It's almost what I wanted, in fact I created a calendar with the StringGrid and I would like it on some dates when I hover over it to show the description of what is registered in the database, such as a birthday or a holiday. This information who registers is the user.

     

  6. 22 hours ago, Sherzod said:
    
    procedure TMainForm.UniStringGrid1Click(Sender: TObject);
    var
      _Value : String;
      grid: TUniStringGrid;
    begin
      grid := (Sender as TUniStringGrid);
      with grid do
        if (Row >= 0) then
        begin
          _Value := Cells[Col, Row];
    
          if _Value = '1' then
            _Value := '2'
          else if _Value = '2' then
            _Value := '1'
          else
            _Value := '1';
    
          Cells[Col, Row] := _Value;
    
        end;
    end;

     

    Many thanks, it worked !!

  7. 18 minutes ago, Sherzod said:

    Está bem

    I click on the column and change the value to 1, if the value is already in 1 I put it to 2 and the colors have to change according to the value, but if I click once on the column it changes the value and if I click again in the same column the value remains the same. The unigui does not recognize the second click on the same column, I have to click on another column so that I can click on the other column again.

    Exemplo.gif

    StringGrid Demo - Copia.rar

  8. 3 minutes ago, Sherzod said:

    Hi,

    Can you please clarify what problem do you have?

    I am facing problematic with the onDrwaCell event of UniStrigGrid. This event is only triggered once when the StringGrid is mounted. After even manipulating the values of the grid this event does not fire any more.

     

    What is the solution to this?
×
×
  • Create New...