Jump to content

Frederick

uniGUI Subscriber
  • Posts

    608
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Frederick

  1. Please see attached video. After I double click the column or press the ENTER key on it, I want the label "Editing: No" to become "Editing: Yes".

    If I decide to cancel an edit and I press the ESCAPE key, I want the label "Escape: No" to change to "Escape: Yes" and the label "Editing: Yes" to change to "Editing: No".

    Note: I have also attached the testcase file.

    editgrid.zip

  2. In the OnKeyDown event of a TUniDBTreeGrid, I have the following code:-

    procedure TMainForm.treGridKeyDown(Sender: TObject; var Key: Word;
      Shift: TShiftState);
    begin
       if Key=VK_DELETE then
          showmessage('here');
    end;

    The message is not shown when I press the Delete key.

    In TUniDBGrid, this works.

    How do I get the Delete key to be recognized in the TUniDBTreeGrid component?

    --
    Frederick
    (UniGUI Complete - Professional Edition 1.90.0.1541)
     

  3. 3 hours ago, AntonioCuomo said:

    If j press the enter the cursr not go to next row (in unimemo)

    Try the following:-

    UniMemo1 -> ClientEvents -> ExtEvents ... add Ext.Js event for AfterRender:

    function afterrender(sender, eOpts)
    {
       sender.bodyEl.dom.addEventListener(
            'keydown', 
            function(e) {if (e.key=='Enter') {e.stopPropagation()}}
        );
    }
     

  4. 2 hours ago, Sherzod said:

    Hello,

    You can try this:

    
    TUniDBGrid(UniDBTreeGrid1).CurrRow

     

    Thanks. The missing property message is gone but the code does not perform as I would expect.

    Please see the attached video. Each time I add a record, the new record is properly positioned to but the rectangular highlight is pointing to another row. I want the highlight to be at the new record.

    I have also attached the project files.

    dbtreeexclaim.zip

  5. In a TUniDBGrid, I can use the following code to position to a row and column:-

    grdGrid.JSInterface.JSCall('getNavigationModel().setPosition', [grdGrid.CurrRow, grdGrid.CurrCol]);

    I can't use the same code for a TUniDBTreeGrid because the CurrRow and CurrCol properties are protected. How do I achieve the same result for this component?

    --
    Frederick
    (UniGUI Complete - Professional Edition 1.90.0.1539)
     

  6. 5 hours ago, Farshad Mohajeri said:

    This is the Max sessions for HyperServer itself not for the Nodes. This value means that HyperServer can open up to 20 monitor sessions.

    Max sessions for Nodes is defined in the related CFG file.

    I see. So, since my UniServerModule.ServerLimits.MaxSessions is 250 and I have max_nodes in Hyperserver.cfg set at 8, I should have a theoretical limit of a maximum active sessions at 250 x 8 = 2,000 or 250 / 8 = 31.25?

×
×
  • Create New...