Jump to content

erich.wanker

uniGUI Subscriber
  • Posts

    867
  • Joined

  • Last visited

  • Days Won

    28

Everything posted by erich.wanker

  1. Hy... in a loop - i add Database values to a uniComboBox: while not ZQuery1.Eof do begin UniComboBox1.Items.Append(ZQuery1.FieldByName('customer_name').asstring); ZQuery1.Next; end; Can i save the "unique database Integer" to the item also ? .. i want to read the unique Integer AND the UniComboBox1.Text in procedure TuniForm.UniComboBox1Change(Sender: TObject); ThanX
  2. how can i change the font-color of "emptyText in uniedit" to white ? thanks erich
  3. Hi, how can i set uniDBGrid with text-overflow: ellipsis ThanX Erich
  4. .. perfect .. thank you just another question: UniCalendarPanel in Month-view: the days have all white background .. how can i set the "today"-panel to gray? ThanX Erich
  5. Hi .. i found out what CalendarEvent has 4 predefined CSS styles... if i create a CalendarEvent with CalendarId 1 - it uses the first css i want to change the colors of the 4 styles .. How can i do this? procedure TS_TOOL_KALENDER.termin_eintragen(wann:TDateTime;was:String;id:Integer;mein_status:integer); var E : TUniCalendarEvent; begin E:=UniCalendarPanel1.Events.Add; E.StartDate :=wann; E.EndDate :=wann; E.Title :=was; e.EventId :=id; if mein_status = 0 then e.CalendarId:=1; // open schedule if mein_status = 1 then e.CalendarId:=2; // closed schedule E.IsAllDay :=true; end;
  6. hi following code doesnt work (i think since update from extjs 4 to extjs 6 ??) procedure TS_TOOL_KALENDER.termin_eintragen(wann:TDateTime;was:String;id:Integer); var E : TUniCalendarEvent; i : integer; begin E:=UniCalendarPanel1.Events.Add; E.CalendarId:=id; E.Title :='Termin:'+was; E.IsAllDay :=true; E.StartDate :=wann; E.EndDate :=wann; end; the code produce no error - but the calendarPanel (Month-view) shows no Events Any Idea ThanX Erich
  7. ui_design.webm ok .. got it :-) but i think - i use a crazy way ;-) .. but it works
  8. hy .. At designtime, i give x-mask a random color: .. different UniContainerPanel´s have the class x-mask .. and if i start the UniGUI App - the UniContainerPanels have a random color... But how can i change the color-value OF THE CSS at runtime with a UniColorButton? ... I ThanX Erich
  9. please, in main -- onCreate .. find line 224 and delete it :-) UniHTMLFrame1.HTML.Append (' background-image: url(files/css/open_icon.png); ');
  10. ?? .. i have no idea WHY this happens .. i made a Dropbox-link: https://www.dropbox.com/s/qg48r4hfr6o9mp8/demo.zip?dl=0 hope this way works
  11. hi .. a small demo .. i hope it helps :-) Nice greetings Erich (zip file containig folder "files" .. with images and JS-Library .. please store it to your webserver-structure..) demo.zip Places where you should look: Main->UniContainerpanel->ClientEvents->ExtEvents .. Background thing UniForm1->ClientEvents-ExtEvents ... Animate the form ServerModule->CustomMeta .. load JS Library in TUniForm1.UniFormShow - i animate all uniConatinerPanels WHERE THE TAG value (ObjectInspector) is 1 in TMainForm.UniFormCreate - i copied a lot of my css things in UniHTMLFrame1 ... a lot of css declarations are not important for the demo .. a lot of trash ;-) the basic thing: UniSession.AddJS('TweenMax.to('+the Component and his JSName+'_id,'+Speed of animation+',{left:'+inttostr(position)+'});'); mini_demo.webm
  12. ok .. found a solution for chrome, egde, safari, opera ... i changed to https://greensock.com/tweenmax and i animate my things with : Panels: UniSession.AddJS('TweenMax.to('+UniContainerpanel.JSName+'_id,0.4,{left:'+inttostr(x)+'});'); Forms: UniSession.AddJS('TweenMax.to('+self.WebForm.JSName+'_id,1,{autoAlpha:0});'); Works fine :-) Greetings Erich user_interface.webm
  13. Hi i think, jquery schould work for every browser??? .. also safari, opera, firefox, Edge..? i included jquery3.3.1mini.js in my UniGui DLL ... but the animation just works in Chrome-Browser... The example-line, what works in Chrome: procedure TV_LOGIN.UniLabel4Click(Sender: TObject); begin UniSession.AddJS(optionen.JSName + '.animate({duration:600,to:{x:'+inttostr(self.Left)+'}});'); ... UniServerModule - CustomMeta: Chrome-DeveloperTool-View
  14. Hello folks, in chrome following jquery-line works fine - in Edge Browser nothing happens? UniSession.AddJS(UniContainerPanel.JSName + '.animate({ duration: 600, to: { x: '+inttostr(position)+' } });'); And Idea? ThanX Erich
  15. got it :-) Mainform - TUniContainerPanel - extEvents: function beforerender(sender, eOpts) { sender.addCls("mainbackground") } the css: .mainbackground { background: url(mainlogo.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }
  16. Hello i found a css for full background image.. html { background: url(images/bg.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } how can i give my Unigui Main (MainFormDisplayMode = mfPage) a background image what fit perfect after resizig the Browser window? Like: https://css-tricks.com/examples/FullPageBackgroundImage/progressive.php ThanX Erich
  17. i didnt find the reason .. so i copied the missed files to root directory "c:\" ;-) Nice greetings Erich
  18. Hi ... now Logfile tells that unigui is searching on harddisk C./ in Servermodule-Objectinspector i have ExtLocale [Auto] ExtRoot [ext]\ UniRoot [uni]\ datenschutz.dll: 00001310: 13:34:24 [HandleFileRequest[195.192.8.201]]:File not found: C:\uni\css\uni-ext.css datenschutz.dll: 000004B8: 13:34:24 [HandleFileRequest[195.192.8.201]]:File not found: C:\ext-6.5.3\build\classic\theme-classic\resources\theme-classic-all.css datenschutz.dll: 00000814: 13:34:24 [HandleFileRequest[195.192.8.201]]:File not found: C:\uni\css\uni-xtheme-common.css datenschutz.dll: 0000026C: 13:34:24 [HandleFileRequest[195.192.8.201]]:File not found: C:\ext-6.5.3\build\ext-all.js datenschutz.dll: 00001310: 13:34:24 [HandleFileRequest[195.192.8.201]]:File not found: C:\ext-6.5.3\build\packages\font-pictos\resources\font-pictos-all.css datenschutz.dll: 00001180: 13:34:24 [HandleFileRequest[195.192.8.201]]:File not found: C:\ext-6.5.3\build\packages\font-awesome\resources\font-awesome-all.css datenschutz.dll: 000004A8: 13:34:24 [HandleFileRequest[195.192.8.201]]:File not found: C:\ext-6.5.3\build\classic\theme-classic\theme-classic.js datenschutz.dll: 00001310: 13:34:24 [HandleFileRequest[195.192.8.201]]:File not found: C:\uni\ext-unicommon-min.js datenschutz.dll: 000004A8: 13:34:24 [HandleFileRequest[195.192.8.201]]:File not found: C:\uni\ext-sync-min.js datenschutz.dll: 00001180: 13:34:24 [HandleFileRequest[195.192.8.201]]:File not found: C:\ext-6.5.3\build\classic\locale\locale-de.js datenschutz.dll: 0000026C: 13:34:24 [HandleFileRequest[195.192.8.201]]:File not found: C:\uni\AlwaysOnTop.js datenschutz.dll: 00000814: 13:34:24 [HandleFileRequest[195.192.8.201]]:File not found: C:\uni\jQuery\jquery-1.11.2.min.js datenschutz.dll: 000004B8: 13:34:24 [HandleFileRequest[195.192.8.201]]:File not found: C:\uni\jQuery\MaskedInput\jquery.inputmask.min.js datenschutz.dll: 0000026C: 13:34:24 [HandleFileRequest[195.192.8.201]]:File not found: C:\ext-6.5.3\build\packages\font-awesome\resources\font-awesome-all.css datenschutz.dll: 000004B8: 13:34:24 [HandleFileRequest[195.192.8.201]]:File not found: C:\ext-6.5.3\build\packages\font-pictos\resources\font-pictos-all.css datenschutz.dll: 00001180: 13:34:24 [HandleFileRequest[195.192.8.201]]:File not found: C:\ext-6.5.3\build\packages\ux\classic\ux.js datenschutz.dll: 00000814: 13:34:25 [HandleFileRequest[195.192.8.201]]:File not found: C:\uni\jQuery\autoNumeric\autoNumeric-1.9.35.js datenschutz.dll: 000004A8: 13:34:25 [HandleFileRequest[195.192.8.201]]:File not found: C:\uni\unicanvas-min.js datenschutz.dll: 00001310: 13:34:25 [HandleFileRequest[195.192.8.201]]:File not found: C:\uni\ext-unigui-min.js datenschutz.dll: 000004A8: 13:34:25 [HandleFileRequest[195.192.8.201]]:File not found: C:\ext-6.5.3\build\packages\ux\classic\ux.js datenschutz.dll: 000004A8: 13:34:25 [HandleFileRequest[195.192.8.201]]:File not found: C:\uni\unicanvas-min.js datenschutz.dll: 00001310: 13:34:25 [HandleFileRequest[195.192.8.201]]:File not found: C:\uni\ext-unigui-min.js datenschutz.dll: 000004A8: 13:34:25 [HandleFileRequest[195.192.8.201]]:File not found: C:\uni\css\uni-xtheme-common.css datenschutz.dll: 000004A8: 13:34:27 [HandleFileRequest[195.192.8.201]]:File not found: C:\uni\css\uni-ext.css datenschutz.dll: 00001310: 13:34:27 [HandleFileRequest[195.192.8.201]]:File not found: C:\ext-6.5.3\build\packages\font-awesome\resources\font-awesome-all.css datenschutz.dll: 00001180: 13:34:27 [HandleFileRequest[195.192.8.201]]:File not found: C:\uni\css\uni-xtheme-common.css datenschutz.dll: 00000814: 13:34:27 [HandleFileRequest[195.192.8.201]]:File not found: C:\ext-6.5.3\build\packages\font-pictos\resources\font-pictos-all.css datenschutz.dll: 000004B8: 13:34:27 [HandleFileRequest[195.192.8.201]]:File not found: C:\ext-6.5.3\build\classic\theme-classic\resources\theme-classic-all.css
  19. Hello, i have a unigui-dll .. and on my developer machine - it works ... i put all nessesary files on a webserver and it didn´t work.... i found out that the paths (for unigui and extjs) are all wrong ??? unigui writes the name of my unigui-dll in all lines -> script src="/datenschutz.dll/ext-6.5.3/.. correct would be: script src="/ext-6.5.3/.. how can i solve this
  20. ...what is better ? .. if i write this in servermodule / custonCSS - it didn´t work .. if i write it in my css-file (what i load in html meta) it didn´t work
  21. Hy, after updatig to uniGui 1.10.0.1471 / extjs 6.5.3 following code are not working : .. i want to change the color of "selected row" to green .. and the text should be white unselected rows are gray .. text black UniHTMLFrame1.HTML.Append ('.x-grid-body { '); UniHTMLFrame1.HTML.Append ('background: #E8E8E8;'); UniHTMLFrame1.HTML.Append ('}'); UniHTMLFrame1.HTML.Append ('.x-grid-cell {'); UniHTMLFrame1.HTML.Append ('background-color: #E8E8E8;'); UniHTMLFrame1.HTML.Append ('}'); UniHTMLFrame1.HTML.Append ('.x-grid-row-focused .x-grid-td { '); UniHTMLFrame1.HTML.Append (' -webkit-border-radius: 0px; '); UniHTMLFrame1.HTML.Append (' border-radius: 0px; '); UniHTMLFrame1.HTML.Append ('} '); UniHTMLFrame1.HTML.Append ('.x-grid .x-grid-column { '); UniHTMLFrame1.HTML.Append (' height: 18px ; '); UniHTMLFrame1.HTML.Append (' line-height: 18px ; '); UniHTMLFrame1.HTML.Append (' padding: 0 8px ; '); UniHTMLFrame1.HTML.Append (' vertical-align: middle ; '); UniHTMLFrame1.HTML.Append ('} '); UniHTMLFrame1.HTML.Append ('.x-grid-row-selected .x-grid-td { '); UniHTMLFrame1.HTML.Append (' background-color: #578a59; '); UniHTMLFrame1.HTML.Append (' color: white; '); UniHTMLFrame1.HTML.Append (' font-weight: bold; '); UniHTMLFrame1.HTML.Append ('} '); UniHTMLFrame1.HTML.Append ('.x-grid-row .x-grid-cell-selected { '); UniHTMLFrame1.HTML.Append (' background-color: #578a59; '); UniHTMLFrame1.HTML.Append (' color: white; '); UniHTMLFrame1.HTML.Append (' font-weight: bold; '); UniHTMLFrame1.HTML.Append ('} '); UniHTMLFrame1.HTML.Append ('.x-grid-item { '); UniHTMLFrame1.HTML.Append (' color: #000; '); UniHTMLFrame1.HTML.Append (' font: normal 12px arial, verdana, sans-serif; '); UniHTMLFrame1.HTML.Append (' background-color: #fff; '); UniHTMLFrame1.HTML.Append ('} ');
  22. Hy Farshad, thanx for fast answer :-) System: Win10 32 Bit / Delphi Xe4 / German / Firebird SQL 2.5 / Basic Info no custom conponents Used Components i use "reportbuilder" for printing (http://www.digital-metaphors.com/) i use for firebird 2.5 the zeosLib (Zquery, ZConnection) / standard TDatasource (https://sourceforge.net/projects/zeoslib/) the rest is standard unigui-component :-) i include for visual effects files\js\effects.js files/js/TweenMax.min.js MainForm - Script: function bunload() { dontleave="MountainOffice"; return dontleave; }; function ounload(){ ajaxRequest(MainForm.window, 'SessionClosed', [] ); }; onbeforeunload = bunload; onunload=ounload; - i deleted all JS and librarys - but become same error... i made 3 Logs in the 3 depending forms - but NO LOG was created: uniservermodule.Logger.AddLog('TUniServerModule.UniGUIServerModuleCreate'); uniservermodule.Logger.AddLog('TUniMainModule.UniGUIMainModuleCreate'); uniservermodule.Logger.AddLog('TMainForm.UniFormCreate'); HTH Erich
  23. after update UNIGui to version 1.10.0.1471 / exjs 6.5.3 i become error "Cannot set property 'component' of null" if i start my project (worked fine before update) in browser????? has someone a idea what the reason could be????? ThanX for help Erich
×
×
  • Create New...