Jump to content

erich.wanker

uniGUI Subscriber
  • Posts

    867
  • Joined

  • Last visited

  • Days Won

    28

Everything posted by erich.wanker

  1. hy .. i use a UniTrackBar as button ;-) possible values are 0/1 with css - i start the tracker with my settings.. .x-slider-horz .x-slider-thumb { width: 25px; height: 25px; ; margin-top: -4px; background-image: url(bullet.png); } but i can not change the Background image onClick... i like a red Bullet if the slider is on possition 0 - and a green buttet for position 1 i tryed something like this: function change(slider, newValue, thumb, eOpts) { if (newValue = 0) { slider.setStyle('background-image', "url(/files/css/bullet_r.png)"); if (newValue = 1) { slider.setStyle('background-image', "url(/files/css/bullet.png)"); } but doesn´t work .. Any Idea? ThanX
  2. Hello, can i set a workaround for tabstop something like this not working pseudo code?: if this is possible, i need Javascript for UniDBCombobox, UniDBEdit, UniDBDataTimePicker UniDBMemo... My Situation: I have a Imput Mask like this: UniForm -> UniFrame -> Uniscrollbox - and 10 UniContainerpanels with different Imput controls i played with unimainmodule/navigateKey enabled / disabled ..set Tabstop True/fals of Form Frame, Scrollbox and controlls .. played with Taborder Count ... What i want is to set the TabStop-Order of UniContainerpanels (to enter the controls what are IN theUniContainerpanel ) see my first posting for screenshot: http://forums.unigui.com/index.php?/topic/4696-tunicontainerpanel-tabstoptaborder/?hl=taborder the TabOrder is allways the "order" of the UniContainerpanels in the DFM File..
  3. Hello UniGUI Community :-) I found site https://letsencrypt.org/... Now - i think this is a good way for the future ... BUT: I have absolutly no knowledge about : Https on Apach Server 2.4.3 with "letsencrypt" for uniGui.DLL ... Has someone the knowledge, pleasure and time to make a "https for fools using apache and unigui with "letsencrypt" on a windows machine" .. step by step ? ;-) Infos like: http://rubayathasan.com/tutorial/apache-ssl-on-windows/are not using the "letsencrypt" things ... what is the different for setting up the https ? Thanks for help Erich
  4. MIME-Types are set .... i think - the "file source is internet" flag is set or something else .... i create a pdf on my local machine upload the file without problems download the file without problems upload the downloaded file - ERROR... ??? i am not the server-owner .. and the server-admin has no ideas why this happes.... very mysterious...
  5. Hy .. a mp4 videoplayer panel would be nice ;-) load, start, stop, pause, volumen,... controlled by delphi code ... stretch, proportional, original size ... for videostream ... panelcolor: transparent or user defined color .. or backgroundimage ... and if the user switches to a other video .. NO "loading.gif" should be shown .. just a individual picture or text for every "switch" .. allso controlled by delphi code ... :-)
  6. Hello .. if i uplad a local created file (PDF) from my desktop-PC to the UniGUI-APP - it works fine :_) BUT if i download a File from the server and try to upload the same file again - it doesnt work... i thinkt - the WIN SRV 2003 R2 is the problem .. but i can not find a point to solve this problem .. Has anyone a Idea what´s the problem? ThanX
  7. Hello.. i send eMails via UniGUI-app ... but the FONT of the html-mail is allways "TimesNewRomean" - the client machine is a Win8 with Outlook and all neccesary fonts installed... In UniHTMLMemo1 - i use: function afterrender(sender, eOpts) { sender.textareaEl.setStyle("font-family","Arial"); } to send the Mail i use: begin try IdSMTP := TIdSMTP.Create(nil); idSMTP.Username :='xxxx@xxx.at'; idSMTP.Password :='xxxxx'; idSMTP.Host :='smtp.xxxx'; idSMTP.Port :=25; Msg := TIdMessage.Create(nil); Msg.From.address :='wanker@xxxx'; Msg.Recipients.EMailAddresses := uniedit1.Text; Msg.CCList.EMailAddresses := uniedit4.Text; Msg.BccList.EMailAddresses := uniedit3.Text; Msg.Subject:= uniedit2.Text; Msg.ContentType := 'multipart/mixed'; Msg.ClearBody; while not FileExists( mainform.attachement) do begin sleep(1000); end; TIdAttachmentFile.Create(Msg.MessageParts, mainform.attachement); if UniHTMLMemo1.Lines.Text <> '' then begin HtmPart := TIdText.Create(Msg.MessageParts, nil ); HtmPart.ContentType := 'text/html'; htmpart.Body:=UniHTMLMemo1.Lines; <----- !!!!!!!!! end; try idSMTP.Connect(); idSMTP.Send(Msg); ShowMessage('Message Sent -> ok'); except on e:Exception do ShowMessage('Message Error -> '+e.message); end; finally if idSMTP.Connected then idSMTP.Disconnect(); IdSMTP.Free; HtmPart.Free; Msg.MessageParts.Clear; Msg.Free; end; close; end; What have i forgotten? ;-) ThanX for help
  8. i had the same "situation" ... i solved it by creating the different needed components by runtime ...
  9. What happens if you inject the code via javascript: .... UniSession.AddJS ? element.setAttribute(attributename,attributevalue)
  10. erich.wanker

    unidbGrid

    HI, i made it this way: put a UniHTMLFrame on the TUniForm and ONCREATE: UniHTMLFrame1.HTML.Clear; UniHTMLFrame1.HTML.Append ('<style type="text/css"> .x-grid-body {background: #E8E8E8;} .x-grid-cell {background-color: #E8E8E8;} </style>'); with this way you can change the Color of the focus to the same color of the grid ... ..
  11. Hi, i made it this way.... for all of my forms: Hint for my german-words: fensterliste = list of TUniForm-names fensteranzahl: count of open TUniForms TMainForm .. public { Public declarations } fensterliste: Array[1..100] of String; fensteranzahl:Integer; 1.) procedure TMainForm.UniFormScreenResize(Sender: TObject; AWidth, AHeight: Integer); begin uniTimer3.Enabled:=true; //sende_resizing; 2.) procedure TMainForm.UniTimer3Timer(Sender: TObject); begin sende_resizing; 3.) procedure TMainForm.sende_resizing; var fensterschleife:Integer; begin for fensterschleife := 1 to fensteranzahl do begin if fensterliste[fensterschleife]='VF_ARBEITSLISTE' then VF_ARBEITSLISTE.resizing; if fensterliste[fensterschleife]='VF_VERTRAG' then VF_VERTRAG.resizing; if fensterliste[fensterschleife]='VF_MANDANT' then VF_MANDANT.resizing; if fensterliste[fensterschleife]='VF_PERSON' then VF_PERSON.resizing; and so on ... ... And in EVERY TUNIFORM: public { Public declarations } procedure resizing; 1.) procedure TF_VORSCHUSS.UniFormCreate(Sender: TObject); begin mainform.fensteranzahl:=mainform.fensteranzahl+1; mainform.fensterliste[mainform.fensteranzahl]:=self.Name; 2.) ON Close // Fenster aus dem Fenster-Array löschen y:=1; for x:=1 to mainform.fensteranzahl do begin if mainform.fensterliste[x]=self.Name then y:=y+1; mainform.fensterliste[x] := mainform.fensterliste[y]; y:=y+1; end; mainform.fensteranzahl:=mainform.fensteranzahl-1; close; 3.) procedure resizing; var x,y,h:Integer; begin { // BIG - CENTER self.Width:=trunc((mainform.Width-60)); self.Height:=trunc((mainform.Height-60)); self.Left:=30; self.Top:=30; } { // USE JUST HEIGHT - CENTER self.Width:=850; self.Height:=trunc((mainform.Height-100)); self.Left:=trunc((mainform.Width/2)-(self.Width/2)); self.Top:=trunc((mainform.Height/2)-(self.Height/2)); //V_STRUKTUR_VERTRAG.verstecke_maske; } // NO CHNAGE OF SIZE - JUST CENTER FORM self.Left:=trunc((mainform.Width/2)-(self.Width/2)); self.Top:=trunc(((mainform.Height)-(self.Height))/3); end;
  12. Thanks for information ... it´s a browser-behavior... i found a litte bit of informations on: https://www.sencha.com/forum/showthread.php?267159-Chrome-shows-always-quot-c-\fakepath\...-quot-in-upload-field-instead-of-the-right-path
  13. Hello Farshad, herer are the screenshots .. the testfile is a TXT file located on my desktop .. i tested it with files located on shared drives and other local folders .. the dialog shows always "C:\fakepath\ [filename] The upload works fine! Nice greetings The FileUpload is "Standard" - no special things or so .. object UniFileUpload1: TUniFileUpload OnCompleted = UniFileUpload1Completed Title = 'Daten'#252'bertragung' Messages.Uploading = 'Daten'#252'bertragung...' Messages.PleaseWait = 'Bitte warten...' Messages.Cancel = 'Abbruch' Messages.Processing = 'Datenbearbeitung...' Messages.UploadError = #220'bertragung fehlerhaft' Messages.Upload = 'Senden' Messages.NoFileError = 'Bitte w'#228'hlen Sie eine Datei aus' Messages.BrowseText = 'Browse...' Left = 746 Top = 592 end
  14. Hello .. since Update to newest UniGui - i have "C:\fakepath\" in fileuploader-window after i select a file .. Greetings Erich
  15. Hello, i have a question about Apache 2.4.3 Is it possible to enable "mod_deflate" for UniGui Application ? I tryed out - but didn´t get a compressed result to the client.. My Steps: httpd.conf -> enable LoadModule deflate_module modules/mod_deflate.so root-folder from "htdoc" -> create .htaccess file with content: AddOutputFilterByType DEFLATE text/plain text/xml application/xhtml+xml text/css application/xml image/svg+xml application/rss+xml application/atom_xml application/x-javascript text/html Restart Server i tested it with http://www.whatsmyip.org/http-compression-test/ - but no success :-( Thanks for suggestions
  16. hello :-) example of my question ;-) Procedure Mainform.unipanel.Onclick; begin my_mask_unipanel.visible:= true; my_second_form.showmodal; end; my_second_form.OnShow; begin MainForm.my_mask_unipanel.visible:= false; end; ... "my_mask_unipanel" will never be shown - a correct behavior! i am searching somthing like Procedure unipanel.Onclick; begin my_mask_unipanel.visible:= true; Clientside.refresh; my_second_form.showmodal; end; and... my_second_form.OnShow; begin MainForm.my_mask_unipanel.visible:= false; end; if user clicks on panel - the "my_mask_unipane"l is shown immediately ... and serverside-calculations and traffic to client can start .. and if second_form is shown - the my_mask_unipanel will be set to visible:=false; i made a crazy workarround with timer to realise a "separated communication": Procedure unipanel.Onclick; begin my_mask_unipanel.visible:= true; UniTimer1.enabled:=true; // -> now server sends "my_mask_unipanel.visible:= true" to the client end; procedure UniTimer1.onTimer begin my_second_form.showmodal; // my "Time offset solution": The "my_second_form" is served from server seperat end; this works fine - but is not a correct way... Any ideas ? P.S.: the my_mask_unipanel has: function afterrender(sender, eOpts) { sender.getEl().setStyle('z-index','90000'); } function beforerender(sender, eOpts) { sender.addClass('sec-maske'); } .sec-maske{ position:absolute; width:100%; height:100%; zoom:1; filter:alpha(opacity=50); opacity:.5; background:#000000; cursor:default; }
  17. Was hast du im onCreate und im OnShow des Fensters ? Verwendest du irgendwelche uniTimer? Hast du irgendwo ButtonZumWarenkorb.OnClick(self) verwendet ?
  18. Hallo Karsten, kurze Frage: Wenn ich dich richtig verstehe ist der "Fehler" nur bei mehrfachem Klick ? Was passiert, wenn du bei "ButtonZumWarenkorbClick" in der ersten Zeile ButtonZumWarenkorb.enabled:=false; und nach deiner Preisberechnung: ButtonZumWarenkorb.enabled:=true; reinschreibst? Lg Erich
  19. Hi .. i have a little problem with "ConnectionFailureRecovery" ... if i start the UniGUI application in 2 Tabs of Chrome-browser and work in Tab1 - sometimes the ConnectionFailureRecovery-Mask is comming and i must wait 10 Seconds to work again .. (the pause is in different situations.. i cant find a rule) In the mean time i can work in 2nd Tab without problems since the 2nd tab shows the ConnectionFailureRecovery-Mask ... it seems that the unigui-Application (the Session??) makes a short rest ... and the ConnectionFailureRecovery-Mask needs minimum 10 seconds to check if everything works fine the behavior (server-side) is on different Server-systems the behavior (client-side) is stronger on apple-Safari browser .. the ConnectionFailureRecovery-Mask is shown on differnt hardware (using Safari Browser) 10 times more often when on windows-machines with chrome browser ... (in same network ) if i deactivate the "ConnectionFailureRecovery" - a form is shown with "Server unaviable" .. but i can work without problems in Browser-Tab 2 .. on my testmachine - the server is on localhost !!!! and i got the same behavior -- What can i do to reduce the 10 seconds pause of the ConnectionFailureRecovery-Mask ? -- What can i do to find the reason for the pause ? here is my "ServerModule" object UniServerModule: TUniServerModule OldCreateOrder = False AutoCoInitialize = True FilesFolder = 'files\' TempFolder = 'temp\' ExtRoot = 'extjs\' UniRoot = 'uni\' SessionTimeout = 72000000 Title = 'Betriebsleitersoftware' BGColor = 13809322 CharSet = 'utf-8' FaviconOptions = [foVisible, foLocalCache] AjaxTimeout = 72000000 DefaultImageFormat = cfJpeg SuppressErrors = [errObjectNotFound, errAjax] UnavailableErrMsg = 'Der Server ist momentan nicht erreichbar, bitte versuchen sie es' + ' sp'#228'ter nochmal.' LoadingMessage = 'Loading ...' Bindings = <> MainFormDisplayMode = mfPage CustomFiles.Strings = ( 'files/js/effects.js') CustomCSS.Strings = ( '</style> ' '<link rel=stylesheet href="/files/css/sec.css" />' '<style type="text/css">' '') CustomMeta.Strings = ( '<META http-equiv="Content-Language" content="de">' '<META http-equiv="Language" content="de">' '<META http-equiv="ROBOTS" content="NONE">' '<script src="files/js/TweenMax.min.js"></script>' ServerMessages.ExceptionTemplate.Strings = ( '<script type="text/javascript">' '<!--' 'window.location.reload();' '//-->' '</script>') ServerMessages.InvalidSessionTemplate.Strings = ( '<script type="text/javascript">' '<!--' 'window.location.reload();' '//-->' '</script>') ServerMessages.TerminateTemplate.Strings = ( '<script type="text/javascript">' '<!--' 'window.location.reload();' '//-->' '</script>') ServerMessages.InvalidSessionMessage = 'Ung'#252'ltige Sicherheits-ID' ServerMessages.TerminateMessage = 'Sicherheits-ID abgelaufen' AllowWebMonitor = False ExtLocale = '[Auto]' Compression.Level = zcFastest Compression.MinTextSize = 128 ServerLimits.MaxRequests = 1000 SSL.SSLOptions.RootCertFile = 'root.pem' SSL.SSLOptions.CertFile = 'cert.pem' SSL.SSLOptions.KeyFile = 'key.pem' SSL.SSLOptions.Method = sslvSSLv3 SSL.SSLOptions.SSLVersions = [sslvSSLv3] SSL.SSLOptions.Mode = sslmUnassigned SSL.SSLOptions.VerifyMode = [] SSL.SSLOptions.VerifyDepth = 0 Options = [soRestartSessionOnTimeout] ConnectionFailureRecovery.ErrorMessage = 'Keine Verbindung zum MountainOffice-Server ' ConnectionFailureRecovery.RetryMessage = 'Suche Server ...' ConnectionFailureRecovery.TextColor = clWhite UniMobileRoot = 'unim\' TouchRoot = 'touch\' Height = 746 Width = 901 end
  20. Can someone make a look at the config-file? Is where a way to increase performance? Win-Server 2003 R2 / Apache 2.4 i need just PHP, compression (zip) and UNIGUI ServerRoot "C:/VersatileServer/apache" Listen 80 LoadModule access_compat_module modules/mod_access_compat.so LoadModule actions_module modules/mod_actions.so LoadModule alias_module modules/mod_alias.so LoadModule allowmethods_module modules/mod_allowmethods.so LoadModule asis_module modules/mod_asis.so LoadModule auth_basic_module modules/mod_auth_basic.so LoadModule authn_core_module modules/mod_authn_core.so LoadModule authn_file_module modules/mod_authn_file.so LoadModule authz_core_module modules/mod_authz_core.so LoadModule authz_groupfile_module modules/mod_authz_groupfile.so LoadModule authz_host_module modules/mod_authz_host.so LoadModule authz_user_module modules/mod_authz_user.so LoadModule autoindex_module modules/mod_autoindex.so LoadModule cgi_module modules/mod_cgi.so LoadModule dav_lock_module modules/mod_dav_lock.so # LoadModule deflate_module modules/mod_deflate.so LoadModule dir_module modules/mod_dir.so LoadModule env_module modules/mod_env.so LoadModule headers_module modules/mod_headers.so LoadModule include_module modules/mod_include.so LoadModule info_module modules/mod_info.so LoadModule isapi_module modules/mod_isapi.so LoadModule log_config_module modules/mod_log_config.so LoadModule cache_disk_module modules/mod_cache_disk.so LoadModule mime_module modules/mod_mime.so LoadModule negotiation_module modules/mod_negotiation.so LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_ajp_module modules/mod_proxy_ajp.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule setenvif_module modules/mod_setenvif.so # LoadModule ssl_module modules/mod_ssl.so LoadModule status_module modules/mod_status.so <IfModule !mpm_netware_module> <IfModule !mpm_winnt_module> User daemon Group daemon </IfModule> </IfModule> ServerName localhost:80 DocumentRoot "C:/VersatileServer/htdocs" <Directory "/VersatileServer/htdocs"> Options ExecCGI # Options FollowSymLinks # AllowOverride All AllowOverride None Order allow,deny Deny from all Require all granted </Directory> AcceptFilter http none <Directory "C:/VersatileServer/htdocs"> Options Indexes FollowSymLinks Includes ExecCGI Order allow,deny Allow from all </Directory> <IfModule dir_module> DirectoryIndex index.php index.pl index.cgi index.asp index.shtml index.html index.htm \ default.php default.pl default.cgi default.asp default.shtml default.html default.htm \ home.php home.pl home.cgi home.asp home.shtml home.html home.htm </IfModule> <Files ".ht*"> Require all denied </Files> <IfModule alias_module> ScriptAlias /cgi-bin/ "C:/VersatileServer/cgi-bin/" </IfModule> <IfModule cgid_module> </IfModule> <Directory "C:/VersatileServer/cgi-bin"> AllowOverride None Options None Require all granted </Directory> <IfModule mime_module> TypesConfig "conf/mime.types" AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddHandler cgi-script .cgi .pl .asp AddHandler isapi-handler .dll AddType text/html .shtml AddOutputFilter INCLUDES .shtml ISAPICacheFile C:/VersatileServer/htdocs/vmo.dll </IfModule> <IfModule mime_magic_module> MIMEMagicFile "conf/magic" </IfModule> Include "conf/extra/httpd-xampp.conf" Include "conf/extra/httpd-mpm.conf" Include "conf/extra/httpd-multilang-errordoc.conf" Include "conf/extra/httpd-autoindex.conf" Include "conf/extra/httpd-languages.conf" Include "conf/extra/httpd-userdir.conf" Include "conf/extra/httpd-info.conf" Include "conf/extra/httpd-vhosts.conf" Include "conf/extra/httpd-proxy.conf" Include "conf/extra/httpd-default.conf" Include "conf/extra/httpd-ssl.conf" <IfModule ssl_module> SSLRandomSeed startup builtin SSLRandomSeed connect builtin </IfModule> <IfModule mod_proxy.c> <IfModule mod_proxy_ajp.c> Include "conf/extra/httpd-ajp.conf" </IfModule> </IfModule> Server/htdocs/vmo.dll </IfModule> <IfModule mime_magic_module> MIMEMagicFile "conf/magic" </IfModule> Include "conf/extra/httpd-xampp.conf" Include "conf/extra/httpd-mpm.conf" Include "conf/extra/httpd-multilang-errordoc.conf" Include "conf/extra/httpd-autoindex.conf" Include "conf/extra/httpd-languages.conf" Include "conf/extra/httpd-userdir.conf" Include "conf/extra/httpd-info.conf" Include "conf/extra/httpd-vhosts.conf" Include "conf/extra/httpd-proxy.conf" Include "conf/extra/httpd-default.conf" Include "conf/extra/httpd-ssl.conf" <IfModule ssl_module> SSLRandomSeed startup builtin SSLRandomSeed connect builtin </IfModule> <IfModule mod_proxy.c> <IfModule mod_proxy_ajp.c> Include "conf/extra/httpd-ajp.conf" </IfModule> </IfModule>
  21. i use TweenLite to animate the forms of my project .. in Form.ClientEvents.ExtEvebts -> Ext.form.Panel[form] -> form.show i have function form.show(sender, eOpts) { TweenLite.set(sender.getId(), {scale:0.5, rotationX:70, autoAlpha:0, y:-300, z:-500, transformPerspective:600, display:"block"}); TweenLite.to(sender.getId(), 0.25, {autoAlpha:1, scale:1, ease:Back.easeOut.config(1.5), delay:0.1}); TweenLite.to(sender.getId(), 0.4, {rotationX:0, y:0, z:0, ease:Back.easeOut.config(1), delay:0.15, clearProps:"transform"}); } but the script doe not work anymore ... i get no errors .. the <script src="files/js/TweenMax.min.js"></script> is loaded .. the TweenLite-function should be work .. but nothing happens ... Does anybody know what i must change to run the animated effect again? ThanX
  22. Hello Kiener, i use "TDataSource - OnDataChange" for similar things ... hth erich
  23. made a restart of my Win8.1 / 32 bit machine .. compiling does still work "install" shows now a other error: what make i wrong?
×
×
  • Create New...