Jump to content

Ken_Sowyer

Members
  • Posts

    15
  • Joined

  • Last visited

Posts posted by Ken_Sowyer

  1. About the rotate picture, most devices, even if is in portrait, take the photo on landscape, and add an information to the file (EXIF) to say if is portrait or not.

    I think there's not much to do, since Delphi doesn't read the EXIF information of the picture file.

    You can make a rotate option, but can be slow and may cause quality loss.

    Maybe there's a component for Delphi to read the EXIF, but for who doesn't use third party components, no solution yet.

  2. Alright, here what I done:

       '<button id={1} onclick="myFunction()">X</button>'+
    

    Then create a .js file with an ajaxRequest, adding to CustomFiles in the ServerModule.

        function myFunction(){
             ajaxRequest(MyForm.form,"ExcluirItem",[]);
        }
    

    Then add the OnAjaxEvent to the form.

     if EventName = 'ExcluirItem' then
      myAct.Execute;
    

    I don't know if there's a simple way, but it's working.

  3. Obrigado Marlon! Mas não sei se entendi a resposta.

    adiciono um scroll e dentro dele os componentes, com isso o browser consegue dar foco visivel no campo selecionado.

     

    Seria um TUnimScrollbox? 

     

    A maneira que encontramos por enquanto:

    procedure TUnimForm3.UnimEdit1Enter(Sender: TObject);
    var
      uPlat: TUniPlatforms;
    begin
      uPlat := UniApplication.UniPlatform;
    
      if (upAndroid in uPlat) then
        UniSession.AddJS(UnimForm3.WebForm.JSName + '.getScrollable().getScroller().scrollToEnd(true)');
    end;

    Dessa maneira ao focar, quando o teclado sobe, a tela dá um scroll deixando o campo visível.

  4. Marlon, muito obrigado, funcionou perfeitamente!

     

    Mas no caso de haver código após a mensagem, esse é executado direto, ignorando a mesma... Há uma maneira de contornar isso? ex: O ShowMessage no final aparece antes da MessageDlg... 

    MessageDlg('Continuar?',
        mtConfirmation,mbYesNo,procedure(Comp:TComponent; ARes: Integer)
        begin
          if Ares = mrYes then
          begin
            ShowMessage('Clicou sim');
          end;
        end
      );
    
    //código fora da procedure independente da resposta 'Continuar?'.
    ShowMessage('...'); 

    Obrigado novamente!

  5. Olá!
     
    Uma dúvida:
     

    Alguém conseguiu fazer funcionar no mobile o MessageDlg dessa forma:

    if MessageDlg('Message',mtConfirmation, mbYesNo)=mrYes then
      begin
      ..............;
      end;
    Ou só é possível mesmo chamando o callback? ex:
    procedure TMainmForm.UnimButton2Click(Sender: TObject);
    begin
      Messagedlg('Continuar?', mtConfirmation, mbyesno, DCallback1);
    end;
    
    procedure TMainmForm.DCallback1(Sender: TComponent; res: Integer);
    begin
      case res of
        mrYes: ShowMessage('Clicou SIM');
        mrNo: ShowMessage('Clicou NÃO');
      end;
    end;
    Obrigado!
     
     
  6. Olá pessoal! 


    No Chrome ou Firefox no Android, quando clico em um TUnimEdit que esteja mais abaixo do form, o teclado aparece cobrindo o objeto, até que seja digitado algo, só aí ficando visível. No iOS não há esse problema...


    Já pesquisei nos fóruns do uniGui e Sencha, mas não consegui fazer funcionar de maneira correta.


     


    Se alguém passou por isso e puder me ajudar agradeço!


  7.  

    i have no right to write new topic, so i write here.

    i was testing unigui trial verion, specially unigui mobile

     

     

    On Android,

    When I tap a textfield at the bottom of the screen, 

    the soft keyboard appears and hides the active element. 

    see below url,

    http://prog3.com/sbdm/blog/lovelyelfpop/article/details/49679331

     

    how we can adapt on my UniGui.

    if you have solution, please let me know.

     

     

     

    Same problem here, still trying the trial...

    On iOS Safari and some Android web browsers (like UC Browser) works fine, but in Chrome or Firefox on Android, when focus on a TUnimEdit element, keyboard appears covering that element, until some input on the keyboard.

    Any example on how to implement the solution with the link provided?

     

    Thanks on advance!

×
×
  • Create New...