picyka
-
Posts
1063 -
Joined
-
Last visited
-
Days Won
34
Content Type
Profiles
Forums
Events
Posts posted by picyka
-
-
Well, I believe you can use variables in CSS, and when logging into the system, set the value for these variables, or use the suggested solution
ex: UniSession.AddJS('Ext.util.CSS.updateRule(''.x-btn-default-small'', ''background-color'', ''#162d3f'')');
-
Did anyone have a solution?
-
How did your html look, can you paste it here?
-
With the help of master @Sherzod I managed it, here is an example
Stay here, thank you very much.- 1
-
To access the screens you need to login
-
I did not understand your question.
-
CloudFlare
-
-
Há 42 minutos, Sherzod disse:
Como entender isso, desculpe?
-
I would like when starting a registration to show a time counter, and when saving the registration, I can save this time, I did it using UniTimer, but it keeps talking to the server all the time
-
It would be possible to create a timer on the client side, which would need a play and a stop, and still take this time on the server side. I once tried to do this on the client side and was unsuccessful.
-
-
Em 07/09/2022 às 11:18, Harry Rogers disse:
Todo o nosso trabalho é feito do lado do servidor - por isso é apenas coisas Delphi bastante padrão, sem Javscript etc necessário.
Em um aplicativo, temos tablets em campo retornando dados HTML para o servidor. Quando o usuário UNIGUI navega na lista de arquivos retornados, verificamos se o mesmo nome de arquivo existe, mas com uma extensão PDF em vez de HTM - se não, simplesmente chamamos wkhtmltopdf.exe de um procedimento no mainmodule em uma janela oculta com param1 como html de origem e param2 como o PDF necessário. Uma vez que o PDF existe, exibimos/imprimimos conforme necessário.
você pode usar qualquer função Delphi que execute um exe externo (ShellExecute, ShellExecureEx, WinExec, CreateProcess....)
Essa abordagem funciona bem para nós, é fácil de implementar e permite processamento adicional se o processo chamado for realmente um arquivo em lote com uma lista de outras coisas para fazer nele, em vez de apenas converter para um PDF.
Obrigada
Hello, can you post an example of how to use it?
-
1 hour ago, Sherzod said:
One possible solution:
1.
type TXPopupMenu = class(TUniPopupMenu) end;
2. OnReady event ->
procedure TMainForm.UniFormReady(Sender: TObject); begin with TXPopupMenu(UniPopupMenu1).MenuControl.JSInterface do JSAddListener('afterrender', 'function(){this.items.sort(function(item1, item2) {return item1.text.localeCompare(item2.text)})}') end;
It works!
- 1
-
I'll test it, thanks Doctor JS.😁
-
I would like to order the menus by caption Something like,
UniPoupMenu.Items.Sort; -
Is there a possibility to order the menu items?
-
TUniListBox +1
-
Unigui has always been alive. 😀
- 2
-
-
ServerModule {* MAPS *} Self.CustomFiles.Clear; Self.CustomFiles.Add('https://maps.googleapis.com/maps/api/js?key=' + Self.KeyMaps + '&callback=gmNoop&libraries=geometry,places,visualization'); Self.CustomFiles.Add('../files/maps/uniGmap.css'); Self.CustomFiles.Add('../files/maps/markerwithlabel_packed.js'); Self.CustomFiles.Add('../files/maps/markerclusterer.js');
console:
Google Maps JavaScript API has been loaded directly without loading=async. This can result in suboptimal performance. For best-practice loading patterns please see https://goo.gle/js-api-loading
Has anyone resolved this? -
On 2/9/2024 at 10:54 PM, Fred Montier said:
Existem dezenas de bibliotecas pdf vcl que você pode fazer isso. Até mesmo JS libs.
PDFium é apenas um deles e é gratuito.
Não está relacionado à uniGUI.Does PdfiumLib convert html to pdf?
-
59 minutos atrás, FXSystems disse:
Oi.
Eu mudei para Delphi 12 cerca de duas semanas atrás (devido à compatibilidade de aplicativos Android com SDK 33) e estou atualmente testando seu funcionamento com a versão mais recente do uniGUI.Sem problemas até agora.
Acho que vou terminar os testes dentro da próxima semana e migrar toda a solução para Delphi 12 e uniGUI 1.95.0.1580.Have there been any improvements to your unigui application after the update?
-
What do you use to convert from html to pdf?
How to update CustomCSS
in General
Posted
UniSession.AddJS('Ext.util.CSS.updateRule(''.x-myfield-focus'', ''background-color'', ''#162d3f'')');