Jump to content

herculanojs

uniGUI Subscriber
  • Posts

    565
  • Joined

  • Last visited

  • Days Won

    12

Posts posted by herculanojs

  1. On 1/14/2020 at 12:59 AM, Sherzod said:

    Like this for example:

    
    function afterrender(sender, eOpts)
    {
        var me=sender;
        me.triggerButtonEl = me.bodyEl.createChild({
            tag: 'button',
            html: '<i class="fa fa-search fa" style="position:relative; color:grey;"></i>'
        });
        
        me.triggerButtonEl.setStyle('position', 'absolute');
        me.triggerButtonEl.setStyle('top', '0px');
        me.triggerButtonEl.setStyle('right', '0px');
        me.triggerButtonEl.setStyle('left', 'auto');
        me.triggerButtonEl.setStyle('height', '100%');
        
        me.triggerButtonEl.addListener('click', function(){
            //ajaxRequest(me, 'clicked', []);
        });
        
        me.inputEl.setStyle('padding-right', me.triggerButtonEl.getWidth()+1);
    }

     

    how can i pass this code at runtime.
    I can't make it work with dynamic component creation

  2. The accordion layout apparently only works with AlignmentControl = uniAlignmentClient
    However when I switch to this form instead of uniAlignmentServer, the Main form gets weird.

    Attached are two images for comparison.
    How to resolve to make background color and anchored controls look similar to uniAlignmentServer

    server.thumb.JPG.8fe3aa6d9595a060b999aec5e9301d0a.JPG

    alignclient.thumb.JPG.dcc52f15eea2b9cc95df1b901bfe5f8a.JPG

  3. I don't know anything that can be compared to Unigui. Until there is something really that can be compared to what there is today, the advances that Unigui will have already made will be difficult to achieve.

    Everything we need we can do it one way or another at Unigui.

    The support of the Unigui team is without comparison.

    Certainly having responsive layout and not having to create a mobile form and a web form will be fantastic. Looking forward to it.

     

    Não conheço nada que possa ser comparado ao Unigui. Até que exista algo realmente que possa ser comparado ao que hoje existe, os avanços que a Unigui já terá sofrido serão difícies de serem alcançados.

    Tudo que necessitamos podemos de um jeito ou de outro conseguir no Unigui.

    O suporte da equipe Unigui é sem comparação.

    Com certeza termos leiaute responsivo e não ter que criar um form para mobile e outro para web será fantástico. Aguardando ansioso 

    • Like 4
  4. 5 hours ago, Sherzod said:

    Also you can use this approach I think.

    1. UniContainerPanel

         --->  UniMemo (align = AlClient)

    2. 

    
    procedure TMainForm.UniFormCreate(Sender: TObject);
    begin
      with UniMemo1.JSInterface do
        JSAddListener('afterrender', 'function(){this.setStyle("width", "100%");this.setStyle("height", "100%")}');
    
      with UniContainerPanel1.JSInterface do
        JSAddListener('afterrender', 'function(){this.initResizable({'+
          'dynamic: true,'+
          'pinned: true,'+
          'handles: "s e se",'+
          'heightIncrement: 20,'+
          'widthIncrement: 20'+
        '})}');
    end;

     

    It couldn't be this way, because I need to resize UniEdit, UniMemo, UniNumberEdit, etc ...

  5. On 5/23/2019 at 2:19 PM, Sherzod said:

    For Resizable:

    
    function added(sender, container, pos, eOpts)
    {
        sender.resizable= true; 
        //sender.draggable= true;
    }

    Stop:

    
    UniPanel1.JSInterface.JSCall('resizer.destroy', []);

    Resume:

    
    UniPanel1.JSInterface.JSCall('initResizable', []);

     

    Is it possible to resize too many components, such as a UniMemo?

  6. On 12/1/2017 at 3:33 PM, perjanbr said:

    Tudo bem Herculano,

     

    Consigui mapear quase todos os componentes do Unigui, o negócio ficou louco, estou fazendo uma aplicação que não vai precisar nem do Delphi, o problema e fazer todas as telas na mão, estou criando um Form Design, esta em 70%, consigo gerar DFM e Pas e ler em tempo de execução com o Script.  Pra você ter ideia consigui mapear ate as classes de conexão de banco de dados. Quando estivar funcional aviso.

     

    Até..

    Boa tarde meu nobre

    Conseguiu avanço ?

  7.  

    Good Morning!!!

     

    I'm creating a Filter option in uniDbGrid in runtime ...

     

    All component connections ...

     

    The visual display is perfect, but the filter code does not work.

     

    When I type the letter no, the event is triggered but the value of the second letter on, the event is not even triggered !!!

     

    I have a project ready but I do not know how to attach in the forum !!!

     

    Could you guide me ???

     

    Unigui Version 1.10.0 Build 1469

     

     

     

    Code Customer...

     

     

    procedure TMainForm.UniFormCreate(Sender: TObject);
    var
      oHidePanel : TUniHiddenPanel;
      oEdit : array of TUniEdit;
      i : integer;
    begin
      TUniHiddenPanel(oHidePanel) := TUniHiddenPanel.Create(Self);
     
      for I := 0 to Pred(UniDBGrid1.Columns.Count) do
      begin
        SetLength(oEdit,Length(oEdit)+1);
        TUniEdit(oEdit)        := TUniEdit.Create(Self);
        TUniEdit(oEdit).Parent := TUniHiddenPanel(oHidePanel).Parent;
        TUniEdit(oEdit).Width  := UniDBGrid1.Columns.Items.Width - 10;
        TUniEdit(oEdit).Name   := 'Edit_'+IntToStr(i);
        UniDBGrid1.Columns.Items.Filtering.Enabled := True;
        UniDBGrid1.Columns.Items.Filtering.Editor  := TUniEdit(oEdit);
      end;
     
      UniMainModule.ADOQuery1.Open;
      UniMainModule.ADOQuery2.Open;
    end;

     

     

    tente assim:

     

    procedure TMainForm.UniFormCreate(Sender: TObject);
    var
      oHidePanel : TUniHiddenPanel;
      oEdit : array of TUniEdit;
      i : integer;
    begin
      oHidePanel := TUniHiddenPanel.Create(Self);
      oHidePanel.Parent := self;
      self.InsertControl(oHidePanel);
     
      for I := 0 to Pred(UniDBGrid1.Columns.Count) do
      begin
        SetLength(oEdit,Length(oEdit)+1);
        TUniEdit(oEdit)        := TUniEdit.Create(Self);
        TUniEdit(oEdit).Parent := oHidePanel;
        TUniEdit(oEdit).Width  := UniDBGrid1.Columns.Items.Width - 10;
        TUniEdit(oEdit).Name   := 'Edit_'+IntToStr(i);
     
        UniDBGrid1.Columns.Items.Filtering.Enabled := True;
        UniDBGrid1.Columns.Items.Filtering.Editor  := TUniEdit(oEdit);
        UniDBGrid1.Columns.Filtering.ChangeDelay := 250;
      end;
     
      UniMainModule.ADOQuery1.Open;
      UniMainModule.ADOQuery2.Open;
    end;
  8. Leveraging the subject

     

    Is it possible in a hybrid application, when it is accessed from a particular device, for example tablet, it uses the desktop instead of mobile? For example: I would like to access via tablet the desktop application and only by mobile, the mobile application. Is it possible to get around something like that?

    • Upvote 1
  9. I think it will take a few years until they get close to the unigui. And when they reach the current stage, unigui will be much more ahead.

     

    The embarcadero continues as always with problem of focus.

    They shoot everywhere and can not close something ripe and easy.

    Firemonkey is a great misfortune, the infinity of bugs made the product unusable.

     

    For demonstrations as they are made, and small applications you even get some results.

    For real-world cases leaves to be desired.

    • Upvote 1
  10. Once again the support of Fmsoft is unsurpassed.

    Forgive us Farsha for the hot head, too much pressure from customers and we go crazy.

     

    You as always are the savior of the motherland.

    • Upvote 1

  11. Together with Farshad we solved the problem.

    An old verification code if it was running on the mobile platform, was failing and moving on to creating a desktop application form.


     

         result := UniSession.isMobile;

    //     result := false;

    //

    //     uPlat := UniApplication.UniPlatform;

    //

    //     if (upMobile in uPlat) then

    //        result := True;

×
×
  • Create New...