Jump to content

Beginner

Members
  • Posts

    90
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Beginner

  1. Thank you guys

    procedure TMainForm.qrySaleListRECEIPNMGetText(Sender: TField; var Text: string;
      DisplayText: Boolean);
    begin
       Text := '<span style="line-height: 0.5; text-align: left"><sup>' + Sender.AsString + '</sup></span><br><span style="line-height: 2.0;color : #4183C4;text-align: left">' + Sender.AsString + '</span>';
    end;
    
    

    M2vg6dUJQ6ef_wfYKKUHRw.png

    • Upvote 1
  2. You can do it using 'Field->OnGetText' and set the 'text' with the desired html template.

    Thank's for you reply can you make simple demo or source how do it?

     

    For example

    I have 2 field in dataset

    1 - job position

    2 - Staff Name

     

    For example dataset has 3 rows I want show in one cell like this each row

      officer

      Bob Mark

     

      head of department

      Bill Clinton

     

      programmer

      Stive Jobs

  3.  

    For now try,

     

    UniMenuButton1->ClientEvents->ExtEvents-> afterrender fn:

    function afterrender(sender, eOpts)
    {
        Ext.onReady(function(){
            if (sender.menu){
                sender.menu.setWidth(sender.width)
            }
        })
    }

     

    Delphi Developer

     

    Not work this method I try

  4. not work for me why ?

    procedure TfrmLogin.UniLoginFormCreate(Sender: TObject);
    begin
      UniSession.AddJS('document.body.style.background = ''url("/files/bg01.jpg") repeat scroll 0% 0%''');
      
    // show image
    added this code for strech not work and not show image  
      UniSession.AddJS('Ext.onReady(function(){document.body.style["background-size"] = ''100% 100%''})');
    end;
    
  5. Hi All

    How remove border form after create runtime inside ContainerPanel?

    Need help i can't remove border by this method

     

    extEvents - windows.afterRender:
    Ext.get(sender.id).el.setStyle("padding", 0);
    Ext.get(sender.id).el.setStyle("border-width", 0);
    Ext.get(sender.id).el.setStyle("margin", 0);

     

     FreeAndNil(FCurrentForm);
      FCurrentForm:=TfrmMonitoring.Create(UniApplication);
      FCurrentForm.Parent:=uncntnrpnlMain;
      FCurrentForm.Show();

     

×
×
  • Create New...