Jump to content

AmericoKutomi

uniGUI Subscriber
  • Posts

    23
  • Joined

  • Last visited

Posts posted by AmericoKutomi

  1. On 6/6/2017 at 6:03 PM, Farshad Mohajeri said:

    Hi,

     

    Delphi 32-bit apps can only use 2GB at most. In practice it is around 1.2 GB.

    Only 64-bit apps can use all available physical RAM.

     

    Trial edition only supports 32-bit apps so you can not test this with Trial edition of uniGUI.

    image.png.a1f1631361ce3f576c7b7f7053a7c535.png

    My app is running on Linux 64 (Ubuntu 18.0.4). The server has 256 GB of RAM. I set the MaxAllowedSize from 0 to 3.221.225.472. When it was 0, no message was shown, but the upload did not work. After changing to 3221225472, the message above appeared.

    What can I do to solve this matter?

    Thanks 

  2. Hi,

    I had the same problem and found a solution. In my case, DBLookupComboBox has a datasource and datafield.

    Consider DBLookupComboBox.datafield is MyField. When the statement MyField.AsInteger:= 1 is called programatically, the correspondent item in the DBLookupComboBox is not selected.

    The solution is to add the statement:

    DBLookupComboBox.UpdateText;

    Apparently, UpdateText does manually the work that should be automatic by a data aware component as TDBLookupComboBox.

    I hope this can help others.

  3. I am trying to use a DBMemo component inside a FieldSet.

    I had done a sample project to show the strange behavior. This is the screen with the problem. The first component is a DBMemo, and the second one is a DBMemo inside a FieldSet. The DBMemo inside FieldSet shows only one line. Why?

    There is no difference when alignment is equal to none or to client.

    image.png.f97742847b0f1307a7a4fa4c18a3ece9.png

    I have attached the project to this post.

    I would like to know what I am doing wrong.

    Could you, please, help me to solve this problem?

    Thanks

    ProjetoTeste.zip

  4. 1 hour ago, Sherzod said:

    Maybe something like this for now:

    
    procedure TMainForm.UniFormCreate(Sender: TObject);
    begin
      with UniDBCheckBox1 do
      begin
        Width := 110;
        JSInterface.JSConfig('maxWidth', [Width]);
      end;
    
    end;

     

    It works fine. Thank you!

    I have asked:

    "Additionally: what can I do to put a minimun width to DBLookupComboBox?"

    Is there 'minWidth', too?

  5. I have a UniFieldSet which contains DBLookupComboBox, DBEdit and DBCheckBox.

    The DBCheckBox occupies more width that I want.

    image.png.0bb30f09450bba628af6eab98c62e376.png

    The DBCheckBox width should be smaller. I would like to know what I am doing wrong.

    This is the DFM part of the form:

    object MainForm: TMainForm
      Left = 0
      Top = 0
      ClientHeight = 338
      ClientWidth = 586
      Caption = 'MainForm'
      OldCreateOrder = False
      MonitoredKeys.Keys = <>
      PixelsPerInch = 96
      TextHeight = 13
      object UniFieldSet5: TUniFieldSet
        Left = 0
        Top = 0
        Width = 586
        Height = 88
        Hint = ''
        CreateOrder = 1
        Title = 'Adicionar novo telefone'
        Align = alTop
        Layout = 'hbox'
        TabOrder = 0
        ExplicitLeft = -156
        ExplicitTop = 1
        ExplicitWidth = 641
        object UniDBLookupComboBox1: TUniDBLookupComboBox
          Left = 15
          Top = 18
          Width = 146
          Hint = ''
          CreateOrder = 1
          ListFormat = '%s'
          ListField = 'conteudo'
          KeyField = 'idtipo_telefone'
          ListFieldIndex = 0
          DataField = 'tipo_telefone'
          TabOrder = 1
          Color = clWindow
          LayoutConfig.Flex = 1
          FieldLabel = 'Tipo'
          FieldLabelAlign = laTop
          ForceSelection = True
        end
        object UniDBEdit6: TUniDBEdit
          Left = 127
          Top = 34
          Width = 50
          Height = 22
          Hint = ''
          CreateOrder = 2
          DataField = 'codigo_pais'
          TabOrder = 2
          LayoutConfig.Flex = 2
          LayoutConfig.Margin = '0 0 0 20'
          FieldLabel = 'Cod. Pa'#237's'
          FieldLabelWidth = 50
          FieldLabelAlign = laTop
        end
        object UniDBEdit7: TUniDBEdit
          Left = 188
          Top = 18
          Width = 177
          Height = 22
          Hint = ''
          CreateOrder = 3
          DataField = 'telefone'
          TabOrder = 3
          LayoutConfig.Flex = 3
          LayoutConfig.Margin = '0 0 0 20'
          FieldLabel = 'N'#186' Telefone com DDD'
          FieldLabelAlign = laTop
        end
        object UniDBCheckBox1: TUniDBCheckBox
          Left = 464
          Top = 18
          Width = 100
          Height = 17
          Hint = ''
          CreateOrder = 4
          DataField = 'app_mensagem'
          ValueChecked = '1'
          ValueUnchecked = '0'
          Caption = 'WhatsApp'
          TabOrder = 5
          ParentColor = False
          Color = clBtnFace
          LayoutConfig.Flex = 4
          LayoutConfig.Margin = '0 0 0 20'
          FieldLabel = 'Aceita Mensagem?'
          FieldLabelAlign = laTop
        end
        object UniDBEdit8: TUniDBEdit
          Left = 293
          Top = 36
          Width = 150
          Height = 22
          Hint = ''
          CreateOrder = 5
          DataField = 'descricao'
          TabOrder = 4
          LayoutConfig.Flex = 5
          LayoutConfig.Margin = '0 0 0 20'
          FieldLabel = 'Ramal ou outra informa'#231#227'o'
          FieldLabelWidth = 150
          FieldLabelAlign = laTop
        end
      end
      object UniButton1: TUniButton
        Left = 264
        Top = 216
        Width = 75
        Height = 25
        Hint = ''
        Caption = 'Close'
        TabOrder = 1
        OnClick = UniButton1Click
      end
    end

    Please, what I have to do to reduce the DBCheckBox width?

    Additionally: what can I do to put a minimun width to DBLookupComboBox?

  6. 27 minutes ago, AmericoKutomi said:

    I executed FMSoft_uniGUI_Theme_Pack_1.90.0.1534.exe in order to install the themes package.

    The dropdown list of Theme property of UniMainModule still shows the standard themes without the new ones.

    I was looking for some existing topic, but I couldn't find.

    What I have to do to be able to pick more themes? Is there a topic with a step by step process?

    Note: I had achieved the installation before, and some old projects have the complete list of themes available.

    I opened an old project with the complete list of themes. After that, I opened the new project. Then, the list of themes appeared complete also in the new project.

    I don't know what happened, but the problem is solved this time.

    I will close the topic.

    Thank you.

  7. I executed FMSoft_uniGUI_Theme_Pack_1.90.0.1534.exe in order to install the themes package.

    The dropdown list of Theme property of UniMainModule still shows the standard themes without the new ones.

    I was looking for some existing topic, but I couldn't find.

    What I have to do to be able to pick more themes? Is there a topic with a step by step process?

    Note: I had achieved the installation before, and some old projects have the complete list of themes available.

  8. On 5/13/2020 at 6:17 PM, Sherzod said:

    Hello,

    Which build of UniGUI are you using?

    How can we reproduce this issue? Do you have a simple app?

    UniGUIVersion 1.90.0.1523

    I made a simple app. There is only one form with a DBGrid. The first 3 columns are Locked. The last column in the grid is DisplayMemo (=true).

    The database is in the source directory: DADOS.FDB and is a Firebird file.

    When running the application, the line with IDPACIENTE = 26 has different heights: one for the locked columns, and higher height for the others. It is due to the last column has data.

    The lines below are not even between locked and unlocked part of the grid.

    image.thumb.png.3f68b66416f97d8da3fca8a443d6165e.png

    DBGridLocked.zip

  9. I am using Locked columns in a DBGrid. In the DBGrid there is a column with DisplayMemo = True, and Editor = UniMemo1.

    When the DBGrid is shown, at first time, the locked columns appear with default height. After (at right) the locked columns, the height of the lines vary depending on the text on Memo Column. It is show in the image below.

    2082919856_LockedandDisplayMemo.thumb.png.f3bec1ad7e816f1fa34da4f4a98a8b64.png

    The only way I have found to correct the heights is when the form is resized. The result is that all lines in all columns are with the correct height. See the image below.

    439613453_LockedandDisplayMemo2.thumb.png.d8897b0638192f92b24304b8b112d077.png

    How can the DBGrid appears correctly when the frame is shown at first time?

    Please, I appreciate any help.

    Thanks

    Americo

     

  10. I have a DBGrid with several columns that hold CheckBoxField.

    For data entry, I am using Tab Key to set focus in each column. Tab key works fine to go to the next column, except for those columns that use CheckBoxField.

    Tab key works for columns with CheckBoxField when the prior column is not in "editing mode". If the prior column has focus with edition, Tab key sets the focus to the next column that doesn't have a CheckBoxField. It skips the columns that apparently have to double-click to enter the checkbox.

    Is it possible to always set focus in a column with CheckBoxField by using Tab key?

     

  11. Kaspersky antivirus stopped my stand alone application with the message:

     

    Application performing dangerous activity characteristic of malware

     

    You are advised to close all active programs and save your changes before computer restart.

     

    Detected: PDM:Trojan.Win32.Generic

    Location: c:\sistemas\cl..in32\debug\webclimax.exe

     

    (Button) Disinfect and restart the computer

     

    Try do disinfect without compurter restart

     

    When I use the second option of disinfecting without computer restart, Kaspersky deletes de executable.

     

    What can I do? I ran the scan with Kaspersky and it should be Okay, but the problem remains.

     

    Is it possible that is a false alarm?

     

    Americo

×
×
  • Create New...