Jump to content

Sherzod

Moderators
  • Posts

    19825
  • Joined

  • Last visited

  • Days Won

    644

Posts posted by Sherzod

  1. On 4/27/2024 at 1:42 PM, x11 said:

    Почему кнопки триггеров видньі?

     

    image.png.3102a56800eff9bde993c078c668222b.png

    Попробуйте это решение на данный момент:

    MainmForm.Script ->

    Ext.define(null, {
        override: 'Ext.field.Text',
    
        constructor: function(config) {
            this.callParent([config]);
    
            this.on('painted', this.onFieldPainted, this);
        },
    
        onFieldPainted: function(field) {
            var triggers = field.getTriggers();
    
            if (triggers && Ext.isObject(triggers)) {
                Ext.Object.each(triggers, function(key, value) {
                    if (field.getReadOnly()) {
                        value.hide();
                    } else {
                        value.show();
                    }
                });
            }
        },
        
        updateReadOnly: function(readOnly) {
            var me = this;
            me.callParent(arguments);
            
            var triggers = me.getTriggers();
    
            if (triggers && Ext.isObject(triggers)) {
                Ext.Object.each(triggers, function(key, value) {
                    if (readOnly) {
                        value.hide();
                    } else {
                        value.show();
                    }
                });
            }
        }
    });

     

    • Thanks 1
  2. 8 hours ago, asapltda said:

    image.png.4ff8485e1d7e0a7df9b274cde9b0f62b.png

    You can also use this approach for now:

    function window.afterrender(sender, eOpts)
    {
        sender.getEl().removeCls('x-window-default');
    }

     

  3. 16 minutes ago, x11 said:

    Можно как-то показать какой-нибудь текст, когда нет записей (строк) в TunimDBListGrid?

    Добрый день!

    procedure TMainmForm.UnimFormCreate(Sender: TObject);
    begin
      UnimDBListGrid1.JSInterface.JSConfig('emptyText', ['<b>Н</b>ет записей...']);
    end;

     

    • Thanks 1
  4. Hello,

    4 minutes ago, asapltda said:

    1. Remove the edges of a tuniform ?  

    2. Round the edges of a tuniform ? Thank you 

    Can you attach a screenshot indicating what exactly?

  5. 5 hours ago, FFREDIANELLI said:

    Hi, how to change the font family name to  "Century Gothic" ? in the dbgrid, how to use the tunifontname ? in this example ?

    Hello,

    Well, about the same, using a variable as you wish:

    On 7/10/2021 at 8:28 AM, Sherzod said:
    procedure TMainForm.UniDBGrid1DrawColumnCell(Sender: TObject; ACol,
      ARow: Integer; Column: TUniDBGridColumn; Attribs: TUniCellAttribs);
    begin
      Attribs.Font.Size := AGridFontSize;
    end;
    procedure TMainForm.UniDBGrid1DrawColumnCell(Sender: TObject; ACol,
      ARow: Integer; Column: TUniDBGridColumn; Attribs: TUniCellAttribs);
    begin
      Attribs.Font.Name := 'Century Gothic';
    end;

     

×
×
  • Create New...