Jump to content

Gabriel

uniGUI Subscriber
  • Posts

    66
  • Joined

  • Last visited

Posts posted by Gabriel

  1. Hi Sherzod, 

    I Attach a small testcase...if you click on the first button (UniButton1) with a cell selected (column january) it would change the css of that cell adding (or subtracting) indentation. What i want is get the final indentation of all cells when i click the second button (getInfo).

    can you help me?

    Regards

    UniStringGrid.rar

  2. Hi Sherzod, 

     

    Sorry but I misspelled. I will like to know the css applied to a particular cell. The user can change the "format" of the cell during execution, and at the moment of saving I will like to know the current style.

    Basically I need to access the Attrib attribute of every cell, but not using the OnDrawCell event

     

    Regards

  3. On 9/16/2017 at 10:03 AM, Sherzod said:

     

    If yes, try like this,

     

    UniStringGrid1 -> OnDrawCell:

    
    procedure TMainForm.UniStringGrid1DrawCell(Sender: TObject; ACol, ARow: Integer;
      var Value: string; Attribs: TUniCellAttribs);
    var
      S : string;
      Val : Integer;
    begin
      S:=TUniStringGrid(Sender).Cells[ACol, ARow];
      Val:=StrToIntDef(S, -1);
      case val of
        0..1000 :
        begin
          //Attribs.Font.Color:=clNavy;
          Attribs.Style.Style := 'text-align: right; color: navy'
        end;
    
        1001..20000 :
        begin
          //Attribs.Font.Color:=clRed;
          //Attribs.Font.Style:=[fsBold];
          Attribs.Style.Style := 'text-align: left; color: red; font-weight: bold'
        end;
    
      end;
    end;

    Hi, 

     

    I know this is an old topic, but, it is possible to access TuniCellAttribs for a UniStringGrid not using the OnDrawCell event?

    I will like to know the css apply to a particular cell (it can change during the execution)

     

    Regards

  4. Hi Sherzod, 

    thanks for the answer. I was able to make it work on the TestCase with no problem, but, on the real project I set the properties as you describe, and when I open a modal window (a particular one, not all of them) and hit F5 it does not capture the event and still refresh the page, but this behavior happens only with mozilla. Chrome and internet explorer work like a charm.

    ¿Do you have any clues or any advice?

     

    Regards

     

     

  5. Hi, 

    I have an issue with the MonitoredKeys. I want to prevent the user to refresh (F5) or go full screen (F11), so I set the following MonitoredKeys

    blob.png.4bdae5ea9512a64a61851aca7c0d63cb.png

    And inside keys: 

    blob.png.e1482de452b4546c8ac6583827d7dc3e.png

     

    This is for F5 (116) and F11(122). This works great at the beginning. But if I click on a cell to start edit and press F5 or F11 the event is handled by the browser.

    I was able to replicate this issue on Chrome, Mozilla Firefox and Internet Explorer.

     

    I Attach the sample project. To be able to replicate is important to start editing one cell (any)

     

    Regards

     

     

    UniStringGrid.rar

     

     

     

     

  6. Hello Sherzod, 

    To reproduce the issue simply add a couple of rows and time scroll down and up fast.

    Also happens if you select the first row and scroll down and up fast

    This is firefox;

    blob.png.101bcc0e7f50684069a43e439932e308.png

    This is Internet Explorer

    blob.png.f25fca95506d5966cb2dbef83de37e0d.png

    I wasnt able to reproduce the issue with Microsoft Edge, but i just see that is the only one not showing the icon next to the url or in the tab title.

    blob.png.741302242b4a8d175a346f564da89d1b.png

    The original post is with Chrome. 

     

    Regards

  7. Hello, 

     

    I'm having an issue with the TUniStringGrid component. After I load all the info, and all is working great, I select the first cell of the grid and do scroll down and up fast it generates a blank space, like the image:

    blob.png.a645179d8054abf3503e0b748b48e039.png

     

    At first, I thought it was because of my data, so I create an empty project (attached), and the result is the same

     

    blob.thumb.png.3e8df48371f47261e59d647317f68a8b.png

    The only difference is that I have to add some rows first.

     

    If anyone could help me, it would be great.

     

    Regards

     

    UniStringGrid.rar

  8. 1 minute ago, Sherzod said:
    
    function form.afterrender(sender, eOpts)
    {
      load();
    }

    ?

     

    Ok, in any case, we will analyze

     

    is in the js file. Is one of the tests.

     

    That function load the menu on the left.

     

     

×
×
  • Create New...