Jump to content
uniGUI Discussion Forums

Frederick

uniGUI Subscriber
  • Content Count

    215
  • Joined

  • Last visited

Everything posted by Frederick

  1. The extra sheet appears only if you direct the printout to a printer instead of saving to a PDF
  2. When the Print button of the TUniPDFFrame is clicked, UniGUI prepares the pages for printing but the print dialogue box reports an extra page available to print. For example, if the PDF has one page, the dialogue reports two pages to print. If you scroll down the preview, you will see an extra blank page at the bottom. Why does this happen? -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1510)
  3. After the print dialogue window of the TUniPDFFrame appears, the print status box does not go away and the user needs to click the Done button to close it. Is there a way to auto hide the print status box? -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1510)
  4. It seems that this has not been fixed in version 1.90.0.1531.
  5. 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)
  6. When I set the caption of a TUniPanel to 'Debit <> Credit', UniGUI shows the caption as 'Debit \x3C\x3E Credit'. How do I get the caption to show the angled brackets? Note: I don't see a property of TextConversion in the TUniPanel. Why should it assume that the text I enter is HTML? -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1530)
  7. Frederick

    How To Show Angled Brackets In TUniPanel's Caption?

    I have found out where the problem lies. In my actual app, I set the TUniPanel's Caption's Font.Color and Color properties in addition to changing the caption. If I set these two properties after your JS code, the angled brackets are not shown correctly. It works if the properties are set before the JS code. So, UniPanel1.Caption:='Debit <> Credit'; UniPanel1.JSInterface.JSCode('Ext.get('#1'.id+"_td").setHtml("'+UniPanel1.Caption+'");'); UniPanel1.Font.Color:=clWhite; UniPanel1.Color:=clRed; Wrong! Angled brackets not shown correctly. UniPanel1.Caption:='Debit <> Credit'; UniPanel1.Font.Color:=clWhite; UniPanel1.Color:=clRed; UniPanel1.JSInterface.JSCode('Ext.get('#1'.id+"_td").setHtml("'+UniPanel1.Caption+'");'); Correct! Angled brackets shown correctly. Thanks for your assistance.
  8. Frederick

    How To Show Angled Brackets In TUniPanel's Caption?

    In Procedure TForm.MyProc; begin TUniPanel1.Caption:='Debit <> Credit'; TUniPanel1.JSInterface.JSCode('Ext.get('#1'.id+"_td").setHtml("'+TUniPanel1.Caption+'");'); end;
  9. Frederick

    How To Show Angled Brackets In TUniPanel's Caption?

    I used the following code in a procedure and not in the OnFormReady event since the caption changes according to some validation process. TUniPanel1.Caption:='Debit <> Credit'; TUniPanel1.JSInterface.JSCode('Ext.get('#1'.id+"_td").setHtml("'+TUniPanel1.Caption+'");'); Unfortunately, the result is still the same.
  10. In a TUniDBGrid, I want a cell to show a blank value when the field of the data source linked to it is 0.00. I am using the following event of the grid but the cell still shows the zero. procedure TForm.grdGridSetCellValue(Sender: TObject; ACol, ARow: Integer; AField: TField; var Value: Variant); begin if Afield.FieldName='debit' then begin if Value='0.00' then Value:=''; end; end; What am I missing here or is this the correct event to use? -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1530)
  11. Frederick

    How To Blank Grid Cell When The Value Is Zero?

    Thanks for the post. I solved the problem as follows:- 1. Set the field's DisplayFormat to '#,0.00;-#,0.00; ' (There is a space after the second semi colon) and 2. Add the following code in the field's OnGetText event procedure TUniMainModule.qryObcreditGetText(Sender: TField; var Text: string; DisplayText: Boolean); begin Text := FormatFloat( TNumericField( sender ).DisplayFormat , Sender.Value ); end; The setting of the DisplayFormat property is the same as I would use in a Delphi Windows program but for some reason in UniGUI, the setting is not recognized and rubbish characters are shown in TUniDBGrid if the OnGetText event is blank.
  12. Before updating to the latest version, I was using version 1.90.0.1526 and I could see the menu drop down icons when using the Uni_Flat_Black theme. However, after installing the update, all I can see are little square boxes in place of the icons. The square icons are also in the top right corners of forms. The same problem also happens with the Uni_Flat_Black_Triton theme. I tried the Classic, Uni_Classic, Uni_Emerald and Uni_KDE themes and the icons are showing up correctly. Am I missing an installation step here? -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1530)
  13. As shown above, how can I fix this problem?
  14. TUniToolbar is not selecting UniGUI compatible controls for its container. 1. Create a new container for TUniToolbar. 2. Right click the container and select Add Controls. 3. Pick any control and UniGUI complains that the visual control selected is not compatible with UniGUI. Shouldn't TUniToolbar present UniGUI compatible controls for selection? -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1526)
  15. Frederick

    TuniToolbar Selects Non-UniQUI Controls For Container

    Farshad, When you fix the problem, don't forget to correct the misspelled word of "compatibale" in UniGUI's error message box.
  16. Frederick

    TuniToolbar Selects Non-UniQUI Controls For Container

    Noted. Thanks.
  17. Frederick

    Web Service Creation With UniGUI

    Is it possible to build a web service using UniGUI? I would like a Windows software to call it and the web service will query a database and then return a string value to the calling Windows software. -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1526)
  18. Frederick

    Web Service Creation With UniGUI

    Thanks
  19. Frederick

    Web Service Creation With UniGUI

    Great! Is there a forum post I can refer to or are there examples available in the demo?
  20. I have a TUniPanel (or TUniGroupBox) where I have placed several components. When I need to move all of them as a single group, I use the Ctrl+Left Mouse combination to select all of them. In a VCL application's TPanel and TGroupBox, I am able to do so. However, in the UniGUI application, nothing happens. Would it be possible for UniGUI to have this important feature as it is quite painful and tedious to have to Shift+Click components one by one? -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1504)
  21. Hi Doug, I never received a resolution to this issue and it still does not work in 1.90.0.1526. To select multiple controls on a TUniPanel or TUniGroupBox, you left click on the first control and then Shift+Left Click on the remaining controls you wish to multi-select. It is tedious and time-consuming if you have lots of controls but I guess that is how it works in UniGUI.
  22. I am using the latest version of UniGUI and TUniFileUpload control is still not overwriting previously uploaded files when the Overwrite Property is set to True. Has this bug been fixed? [UNG-3024] - TUniFileUpload: Property Overwrite has no effect. P.S. Is there a way to change the name of the duplicate file from CGACP_20201001.EXE to CGACP_2020100(1).EXE? -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1525)
  23. Thanks for the update Edit: Regarding my supplemental question, is there a way to change the name of the duplicate file from CGACP_20201001.EXE to CGACP_2020100(1).EXE?.
×