Jump to content

Ken_Sowyer

Members
  • Posts

    15
  • Joined

  • Last visited

Everything 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. Never mind, just find out with "me.scrollableBehavior.scrollView.getScroller().maxPosition.y" Thanks!
  3. I made this in a TUnimDBListGrid. And included a back-to-bottom button, but for this I have to know the scroll size to calculate. But can't figured out. Like, if (a.position.y > element.scrollHeight) { $('#back-to-top').addClass('show'); $('#back-to-top').show(); } I tried many x.scrollHeight, but nothing works... Thanks in advance!
  4. 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.
  5. Hello! How I get the onclick event of a button in a UnimDBListGrid? function beforeInit(sender, config) { config.itemTpl = '<div>'+ '<t>{0} </t>'+ '<button id={1} onclick="DEL_ITEM">X</button>'+ '</div>' } Thanks!
  6. http://forums.unigui.com/index.php?/topic/9892-unimdblistgrid-button-onclick/
  7. Obrigado Marlon! Mas não sei se entendi a resposta. 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.
  8. Olá pessoal!! Alguém conseguiu implementar um leitor de código de barras funcional também para iOS? Testamos aqui com o Zxing, mas só funcionaria no Android. Vi esse link do Sencha: https://docs.sencha.com/webappmgr/device/barcode.html. Teria como implementar no uniGui? Obrigado!
  9. Beleza! Vou dar uma olhada nas demos... Muito obrigado pela atenção!
  10. 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!
  11. 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!
  12. 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!
  13. Aquele link foi revogado, se alguém puder, favor adicionar 45 99982 8212, obrigado!
  14. 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...