Jump to content
uniGUI Discussion Forums

Frederick

uniGUI Subscriber
  • Content Count

    67
  • Joined

  • Last visited

Everything posted by Frederick

  1. 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.
  2. 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)
  3. 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.
  4. I am using the Neptune theme. When displaying a Messagedlg() dialogue control with mbYesNo buttons, I would like to set the default button to mbNo. Additionally, I would like to display a different colour when the mouse cursor hovers over a button, like FMSoft's customer login form. How do I do both? -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1505)
  5. Thanks. This new code does the trick. However, the code is pretty intense!
  6. Ok, thanks. I can live with this theme until I am proficient with creating my own theme or modifying an existing one.
  7. I must be doing something wrong here. My code is:- UniSession.AddJS('Ext.override(Ext.MessageBox, {defaultButton: 2});'); messagedlg('Are you sure you want to delete this record?', mtConfirmation, mbYesNo, CheckDelete); and mbYes is still always positioned to by default. Changing the defaultButton value to 1 or 3 makes no difference.
  8. Frederick

    Adding Second DB Record Results In Blank Record Shown

    Please find attached.
  9. Frederick

    Adding Second DB Record Results In Blank Record Shown

    I previously submitted this post but it seems to have fallen between the cracks. Can someone from technical support please take a look at this problem? I am attaching an animated GIF of the same problem with a SQLite database. Let me know if you need a test case file.
  10. Please find attached. SModal.7z
  11. Frederick

    SelectNext() Is Slow

    I have the following OnKeyDown procedure for TUniDBEdit controls to move to the next control when the Return key is pressed. This procedure simulates pressing the Tab key. procedure TForm.edtCodeKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); begin if Key=VK_RETURN then SelectNext(Sender as TUniControl,True); end; There is a discernible delay of between 0.5 to 1.0 second after the Return key is pressed before the next control is focused compared with pressing the Tab key. How do I speed up the process? -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1504)
  12. Frederick

    SelectNext() Is Slow

    Thank you for your suggestion.
  13. Frederick

    SelectNext() Is Slow

    In UniEdit1's OnAjaxEvent, you have the following code:- if EventName='CarriageReturn' then UniEdit2.JSInterface.JSCall('focus',[]); UniEdit2 is explicitly specified as the next edit control to focus to when the ENTER key is pressed in UniEdit1. This is repeated for UniEdit2 where the focus goes to UniEdit3 and then in UniEdit3, where the focus goes back to UniEdit1. UniEdit1 --> UniEdit2 --> UniEdit3 --> UniEdit1 This is fine if my tab order is UniEdit1 to UniEdit2 to UniEdit3. What if I change my tab order to UniEdit1 to UniEdit3 to UniEdit2? Do I have to change the event code to reflect the new tab order?
  14. Frederick

    SelectNext() Is Slow

    Thanks for the settings.
  15. Thanks. This works as expected.
  16. Please find attached. SModal.7z
  17. Frederick

    SelectNext() Is Slow

    Thanks for the code. The Ajax code for the three TUniEdit controls on the left explicitly focuses the next edit control. How will the Ajax code be if it is to be based on the tab order?
  18. Frederick

    SelectNext() Is Slow

    Thanks. These settings allowed the Return key as Tab to match the speed of the Tab key.
  19. I have UniGUIDialogs and no VCL.Dialogs in the Uses line. However, when I make the following call:- messagedlg('Test Message', mtConfirmation, mbYesNo, SomeFunc); Delphi 10S throws up an error of "E2250 There is no overloaded version of 'MessageDlg' that can be called with these arguments". What am I missing here? -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1504)
  20. I found the problem in that the callback procedure was missing a parameter of "Sender : TComponent" as like procedure TUniForm.SomeFunc(Sender : TComponent; Res : Integer); begin // Some code end;
  21. Why does a TVCLDBColumn within a TUniDBGrid and hosting a float field not respect the DisplayFormat property of "#,0.00;-#,0.00"? In a TColumn of a TDBGrid within a VCL application, the numbers are shown correctly. -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1504)
  22. Frederick

    TVCLDBColumns Do Not Follow DisplayFormat

    After fiddling further, I managed to show the correct format for the TFloatField by setting the DisplayFormat as "#,0.00" instead of "#,0.00;-#,0.00' to represent both positive and negative numbers. Not sure why the Delphi format was not used.
×