Jump to content

crystian

uniGUI Subscriber
  • Posts

    20
  • Joined

  • Last visited

Posts posted by crystian

  1. 46 minutes ago, Sherzod said:

    Can you try this approach for example?:

    
    function painted(sender, eOpts)
    {
        sender.getHeaderContainer().setHeight(60);
    }

    no sucess
    image.png.50268157998a8203e54a2110dd5fe029.png

    function beforeInit(sender, config) 
    {  
       function painted(sender, eOpts)
       {
        sender.getHeaderContainer().setHeight(60);
       }
    }

  2. On 5/15/2020 at 5:24 PM, Sherzod said:

    Hello Crystian,

    Which build of UniGUI are you using?

    The above configuration does not work? Do you want to change the height of the header?

    im use 1.90.0.1523 

     

    On 2/12/2019 at 6:28 AM, Sherzod said:

    Hi,

    Can you try this approach (even without CustomCSS) ?!:

    
    function beforeInit(sender, config) 
    {
        var _height = 30;
    
        config.itemConfig = {
            height: _height
        };
    
        config.headerContainer = {
            height: _height
        };
    }

     

     i tried that config but not work 

     

     

  3. On 5/11/2020 at 8:33 PM, Sherzod said:

    Hi,

    Sorry for the late response.

    Please explain in more detail what does not work?

     

    hi sherzod i have one similar quest about height of column header of unidbgrid.

    how change a default size when this component is created
    look at moment he is created at 32px in theme triton.
    btw i want to change that size.

    if i change in custom css this broken my others elements
    look the image

    image.thumb.png.b977282eb91878f85d89e7e2c7ba77bc.png

  4. 13 hours ago, Abaksoft said:

     

    Hello,

    Did you try ? 

     Copy / Paste   the text  of your  icons  From the PRO siteweb :  https://fontawesome.com/icons?d=gallery&s=solid&m=pro

     

    Maybe (I did'nt try it) on Step 3 :

    3. In your  Unigui Project add this simple line on your ServerModule > CustomFiles :   

    <link rel="stylesheet" href="files/myfontawesome_pro/css/all.css">

    with :  myfontawesome_pro  your uncompressed Directory Pro Edition.

    yeap, then works ty ;)

  5. On 5/4/2020 at 5:04 AM, Abaksoft said:

    Hello Experts,

    Since Build 1530, Farshad integrated the free pack FontAwsome in Unigui.
    So, it is now very easy to use them : 

    in the Object Inspector :

    1. Choose your Font version  :
    ServerModule > FontAwsomeVersion  :   fontAws5

    2. set the TextConversion property of your (caption, uniEdit, etc...) :  txtHTML 

    3. Copy / Paste   the text  of your  icons (obtained from the siteweb)  :  https://fontawesome.com/icons?d=gallery&s=solid&m=free

     

    Best regards

    how  can change that free pack for a premium pack (i have a premium).

  6. 39 minutes ago, Sherzod said:

    Can you try this?

    
    procedure TMainForm.UniDBGrid1ColumnActionClick(Column: TUniDBGridColumn;
      ButtonId: Integer);
    begin  
      case ButtonId of
        ...
        3 :
          begin
            UniFileUploadButton1.JSInterface.JSCall('fileInputEl.dom.click', []);
          end;
    
      end;
    end;

     

    Worked Perfectly !! ty

  7. 5 hours ago, Sherzod said:

    Hi Crystian,

    Simply use OnColumnActionClick event:

    
    procedure TMainForm.UniDBGrid1ColumnActionClick(Column: TUniDBGridColumn;
      ButtonId: Integer);
    begin  
      case ButtonId of
        ...
        3 :
          begin
            UniFileUploadButton1.JSInterface.JSCall('extractFileInput().click', []);
          end;
    
      end;
    end;

    when i use this method, not activated event from onCompleted

    how i can call for active a event OnCompleted after i selected my file

     

  8. On 2/12/2020 at 8:02 AM, Sherzod said:

     

     

    OK, 

    1. Don't use UniHiddenPanel...

    2. UniFileUploadButton.Visible = False

    3. 

    
    procedure TMainForm.UniFormReady(Sender: TObject);
    begin
      with
        UniFileUploadButton1 do
          JSInterface.JSAddListener('click', 'function(){'+ JSName +'.fileInputEl.dom.click()}', YourUniMenuItem.JSMenuItem);
    
    end;

     

    hi Sherzod i have a similar question,  i want call that fileuploadbutton event from a cell click on unidbgrid (i tried a click from a action colum but, i have no sucess) i try like 

     

    with UniFileUploadButton1 do
        JSInterface.JSAddListener('click', 'function(){'+ JSName +'.extractFileInput().click()}', UniDBGrid1.Columns[0].ActionColumn.Buttons.Items[0].JSMenuItem);

    u know how i have success with this case ?

  9. 7 hours ago, Sherzod said:

    Please explain in more details, for what purpose?

    Due to the impossibility of using the settings I mention below, I intended to make a TUniButton available with the CSS settings I intended to use and keep an invisible TUniFileUploadButton triggering the upload function (if I could simulate his click ...)

     

    7 hours ago, Sherzod said:

    How do you do for UniButton?

    It has several forms. One is by assigning a CSS class in the LayoutConfig properties.

    Another is by adding through UniEvents.

    TUniFileUploadButton does not have these properties to edit.

    ---------

    Anyway, I already solved my problem by assigning a CSS class to the form that allowed me to make the changes I needed.

    Thanks for the feedback.

     

     

  10. 4 hours ago, Sherzod said:

    Hi,

    What CSS do you use for the UniButton?

    In my project I use custom css for the buttons change layout appearence.

    I just realized that I didn't complete my question in the first post, sorry for that.

    I would like to know how to handle the TUniFileUploadButton OnClick event or how to insert CSS into it, similar to what I do in TUniButton.

  11. Hi all, i have one question, i have a possibility  to change at run time change property layout on a Tunicontainer panel


    exemple: i have one Parent panel at uniAlignmentClient set a inicial layout config hbox to ajust child panels automatic, but i want when resize screen,

    it assumes the column property so that it breaks down automatically

     

    i have tried to acess the property directly, but delphi reports that it is a read-only property
    can anyone help?

    UnipanelContainer-Layout.rar

×
×
  • Create New...