-
Posts
15 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Ken_Sowyer
-
-
Never mind, just find out with "me.scrollableBehavior.scrollView.getScroller().maxPosition.y"
Thanks!
-
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!
-
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.
-
1423, trial version
-
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!
-
-
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.
-
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!
-
Beleza! Vou dar uma olhada nas demos...
Muito obrigado pela atenção!
-
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!
-
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! -
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!
-
Aquele link foi revogado, se alguém puder, favor adicionar 45 99982 8212, obrigado!
-
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!
UnimFileUpload image on mobile with cropping feature?
in General
Posted
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.