Jump to content
uniGUI Discussion Forums

Frederick

uniGUI Subscriber
  • Content Count

    63
  • Joined

  • Last visited

Everything posted by Frederick

  1. I use the above component to display my PDF files and I would like to move or hide some menu options for better clarity and reduced ambiguity. 1) How do I move the "Go To First Page" and "Go To Last Page" menus to next to the other page positioning menus? It is a logical place for them to be. 2) What is the purpose of the "Open File" menu and can it be hidden? 3) What is the purpose of the "Current View" menu and can it be hidden? 4) Can the "Document Properties" menu be hidden? -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1508)
  2. Frederick

    How To Change TUniPDFFrame Menu Options?

    Per the image of my first post, the black arrows point to where they should be.
  3. Frederick

    How To Change TUniPDFFrame Menu Options?

    Thanks. I missed the event call. All buttons you provided the code for now work. However, is there a way to move the first and last position buttons?
  4. Frederick

    How To Change TUniPDFFrame Menu Options?

    Hi Sherzod, When I added the above code in the OnShow event of the form to hide the "Open File" menu, I received the following Ajax error message:- OFB=new Ext.window.Window({id:"OFB_id",retfalse:{},onEsc:Ext.emptyFn,layout:"fit",title:"Print Reports",modal:true,closeToolText:"",maximizable:false,minimizable:false,resizable:false,iconCls:"x-uni-icon-contain",uniFMask:{beforeclose:true},width:977,height:711,x:451,y:129});OFB.nm="OFB";_cdo_("frmReports");frmReports.ajxS=AjaxSuccess;frmReports.ajxF=AjaxFailure;OFB.rootObj=true;frmReports.appRoot="/";_cdo_(null,OFB,"window",frmReports); O103=new Ext.form.Panel({id:"O103_id",border:false,uActive:false,tabItems:new Ext.util.MixedCollection(),layout:"absolute"});O103.nm="O103";_cdo_(null,O103,"form",frmReports);OFB.add(O103); O10B=(function(P0){return Ext.xR("this="+P0.nm+""+_gv_(O103),OFB,"beforeclose");});O10B.nm="O10B";OFB.on("beforeclose",O10B); O10C=(function(P0){_saf_(P0);return Ext.xR("this="+P0.nm+""+_gv_(O103),OFB,"activate");});O10C.nm="O10C";OFB.on("activate",O10C); O10D=(function(P0){return Ext.xR("this="+P0.nm+""+_gv_(O103),OFB,"deactivate");});O10D.nm="O10D";OFB.on("deactivate",O10D);OFB.on("deactivate",function(f){_sdf_(f)}); O10E=new Ext.panel.iframe({id:"O10E_id",border:false,bodyBorder:false,layout:"absolute",ifName:"name_pdfFrame_O10E",items:[{xtype:"component",width:"100%",height:"100%",autoEl: {tag:"iframe",onload:"iframe_load('O10E_id')",name:"name_pdfFrame_O10E",title:"title_pdfFrame_O10E",src:"about:blank",frameborder:"0"}}],style:"border:none;",width:967,height:670,x:0,y:0});O10E.nm="O10E";_cdo_("pdfFrame",O10E,null,frmReports);O103.add([O10E]);uniVars._loginFrm=null;O103.keyprv=true; O116=(function(P0,P1,P2){return Ext.xR("this="+P0.nm+"&w="+P1+"&h="+P2+""+_gv_(O103),OFB,"resize");});O116.nm="O116";OFB.on("resize",O116); O117=(function(P0,P1,P2){return Ext.xR("this="+P0.nm+"&x="+P1+"&y="+P2+""+_gv_(O103),OFB,"move");});O117.nm="O117";OFB.on("move",O117); O118=(function(P0){return Ext.xR("this="+P0.nm+""+_gv_(O103),OFB,"maximize");});O118.nm="O118";OFB.on("maximize",O118); O119=(function(P0){return Ext.xR("this="+P0.nm+""+_gv_(O103),OFB,"minimize");});O119.nm="O119";OFB.on("minimize",O119); O11A=(function(P0){return Ext.xR("this="+P0.nm+""+_gv_(O103),OFB,"restore");});O11A.nm="O11A";OFB.on("restore",O11A);OFB.show("");OFB.retfalse.beforeclose=1;_axy_(OFB);OFB.uniMask={ldMask:false,maskWaitData:false,maskUseMsg:true};OFB.uniMask.targetObj=null;O10E.iframe.contentWindow.document.getElementById ("openFile").style.display = "none";O10E.iframe.contentWindow.document.getElementById ("secondaryOpenFile").style.display = "none";O10E.initIFrame();O10E.setUrl("/uni-1.90.0.1508/pdf.js/web/viewer.html?file=/cache/icaratcontrol_exe/YSPY5xWoYV10474C455/KNXBFK190820065159954.pdf"); The browser is Opera and I am using Windows 10 Professional x 64. I have not tested the other JS calls.
  5. Frederick

    Adding Second DB Record Results In Blank Record Shown

    Any progress on this?
  6. I use PostgreSQL as my database backend and in my application, I allow the user to add records continuously until they decide to stop. When the form is shown for the first time after the add request is initiated, a procedure called AddRecord is called and it contains the following code. procedure TMainForm.AddRecord; begin oQry.Append; oQry.FieldByName('code').AsString:='*CODE'; oQry.FieldByName('name').AsString:='Name'; oQry.FieldByName('pricemonth').AsFloat:=0.00; oQry.FieldByName('priceyear').AsFloat:=0.00; oQry.FieldByName('priceonetime').AsFloat:=0.00; oQry.FieldByName('priceupdate').AsFloat:=0.00; end; Once the user clicks the Save button, the following code is called. procedure TMainForm.SaveRecord; begin oQry.Post; addrecord; Field1.Setfocus; end; and the cycle repeats. In a VCL application, as the first and second records are appended, you can see all the field content in the TDBGrid on the left, as well as in the individual TDBEdit components. In a UniGUI application, the record content for the first append is shown normally in the TUniGrid and the TUniDBEdit components. However, after the Save button is clicked, the second append results in blank content as shown in the TUniGrid and TUniDBEdit components. Why is this? -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1504)
  7. Frederick

    Error 404 For IIS ISAPI Deployment

    I am deploying my application with HyperServer ISAPI in IIS 10 and the physical directory is C:\UNGAPPS. When typing http://localhost/hello.dll from the web browser, why does the browser select the wrong physical path and return a 404 error? I have followed the instructions from the developers' manual. IIS displays the default page when I type http://localhost. -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1508)
  8. Frederick

    Error 404 For IIS ISAPI Deployment

    I am answering this topic myself for the benefit of users who may have a similar question. In the IIS manager, the basic setting of the application contains an alias field. In my case, it is "hello". If my application's name is xyz.dll, calling up the application locally will require me to type the following URL in the web browser:- localhost/<alias>/xyz.dll where <alias> is hello. If I do not want to type xyz.dll each time, I can add xyz.dll as a default document of the application. My URL will then be:- localhost/hello If you are calling the application over the Internet, replace "localhost" with the IP address or domain name of the host. If over a network, replace "localhost" with the network address of the host.
  9. Frederick

    Contabo Opinions

    I currently use a VPS running Windows Server 2012 R2 that is suppose to use SSD for their storage. However, I find that the speed of starting an application via a RDC to be slow. It is in fact, even slower than my computer with non-SSD drives. It could be that it has 2 GB of RAM and half of it is in use but it still has 22 GB of disk space remaining and swapping to and reading from a SSD disk should still be faster than my computer. I see that Contabo is mentioned here as a reliable hosting provider. If you are using it, how do you find Contabo's customer service, reliability and speed for hosting your UniGUI applications or have you moved on to something better? I am looking at their Contabo VPS S SSD service with the Windows Server 2016 DataCenter option. -- Frederick
  10. Frederick

    Contabo Opinions

    Thank you for your feedback.
  11. Frederick

    Contabo Opinions

    These are quite impressive specifications and I hope to be able to have them in the future but for now, with zero UniGUI production applications (and I am still stuck deploying my first test UniGUI application), it will be hard sell to convince finance to approve a budget for your hardware setup. May I assume that you do not use Contabo's VPS services but are satisfied with their customer service and other products?
  12. Frederick

    Placement Of Files

    I am using IIS 8 in Windows Server 2012 R2 and plan to run my UniGUI applications (built with runtime packages) with the HyperServer ISAPI option. The UniGUI runtime files are installed to the default directories and I have created a directory called C:\MYAPPS and copied relevant Delphi and all UniGUI's BPL files there together with Hyper_server.dll, Hyper_server.cfg and my application Hello.exe. I have renamed Hyper_server.* to Hello.*. Later, when I have report files, I will copy them there as well. Is this the correct and recommended way to run the UniGUI application by placing all the files in the same directory? I am thinking of creating directories as follows but I do not know if UniGUi would like it or not:- C:\RUNTIME (For Delphi and UniGUI BPL files) C:\MYAPPS\APP1 (Contains Hyperserver files and files for App1) C:\MYAPPS\APP2 (Contains Hyperserver files and files for App2) Is this a workable alternative and if yes, do I need to set paths so that the apps will know where to find the runtime files? -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1508)
  13. I have versions 1, 2 and 3 of an application and they all sit in the same folder but have different DLL names like APP1.DLL, APP2.DLL and APP3.DLL. Each user has an application version associated with him/her. When they login, I want to be able to call the URL of the relevant version of the application. Assuming that the applications are run from IIS with a domain name of "mydomain.com", how do I do this? -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1506)
  14. Frederick

    Redirect To Different Application Version

    Thank you. This code works nicely.
  15. Thank you. This code solves the issue.
  16. I have a TUniDBGrid that displays five records. The record is first positioned at ID 1. When I click a second form and press the Next button twice in a TUniDBNavigator to position to ID 3, the grid reflects the new position. However, the indicator at the original ID 1 remains. If you press the down arrow key while in the grid to attempt to position the record to ID 4, the record indicator goes to ID 2 instead. How can this problem be resolved? P.S. It doesn't matter which database I use. The same problem occurs in SQLite and PostgreSQL. -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1505)
  17. Frederick

    Redirect To Different Application Version

    UniGUI does not support redirecting to a different URL in the same window?
  18. Frederick

    Adding Second DB Record Results In Blank Record Shown

    I see that version 1.90.0.1508 still does not solve this problem. Do you have a workaround I can use while you work on a permanent solution?
  19. I see that version 1.90.0.1508 still does not solve this problem. Do you have a workaround I can use while you work on a permanent solution? BTW, how does one view submitted tickets and their statuses in the support portal?
  20. OK, never mind. I'll follow up with technical support later.
  21. I added a callback procedure in a form's ShowModal like the following:- Procedure TMyMain.btnClick(Sender : TObject); begin MyForm2.ShowModal(CloseForm); end; Procedure TMyMain.CloseForm(Sender : TComponent: AResult : Integer); begin showmessage('here'); UniEdit1.Setfocus; end; When MyForm2 closes, the ShowMessage() is seen but the code to focus to the TUniEdit control is ignored. Even when I remove the ShowMessage() call, the Setfocus code is still ignored. What am I doing wrong? -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1504)
  22. Yes, please open a bug ticket. The JS call command does not work all the time in 1.90.1506. I am surprised that a simple command to focus on a control will trip UniGUI.
  23. Frederick

    How Do I Amend A Theme?

    I currently use Uni_Sencha for my theme but the problem is that it changes the heights of my TUniDBEdit and other controls at runtime. This means that what I see at design time is not the same as runtime. If I use Uni_Classic, the controls at runtime are the same as design time. However, the appearance is shall we say, classic. Is it possible for me to copy the Uni_Sencha theme to MyTheme, set the heights of the controls to that at design time and use it in UniGUI? If yes, how should I approach the amendment and application process? If no, are there any other themes in UniGUI that do not change the widths and heights of controls like Uni_Classic but look better than it? -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1506)
  24. Frederick

    Adding Second DB Record Results In Blank Record Shown

    Hi Sherzod, Has there been any progress on this issue? Version 1.90.1506 does not solve the problem.
×