Jump to content

Marlon Nardi

uniGUI Subscriber
  • Posts

    613
  • Joined

  • Last visited

  • Days Won

    70

Posts posted by Marlon Nardi

  1. Hello thiago.ferreira,

    to enable the fonts in your application you must add the MimeType.

    add the file extensions that you want to allow.

    in the OnCreate event ServerModule add:

    eg .ttf extension

    MimeTable.AddMimeType('ttf', 'application/font', False);
    
    • Upvote 1
  2. Good personal day,

    for those who like performance with low memory consumption, following a static class that reduces memory consumption in UniGui applications.

    I'm already using this class on systems that there are many users connected and memory-intensive.

    to call the class:

    TGarbageCollector.Execute;

    unit U_GarbageCollector;
    
    interface
    
    type
      TGarbageCollector = class
        private
        public
          class procedure Execute;
      end;
    
    implementation
    
    uses
      Winapi.Windows, Vcl.Forms;
    
    
    { TGarbageCollector }
    
    class procedure TGarbageCollector.Execute;
    var
      MainHandle : THandle;
    begin
      try
        MainHandle := OpenProcess(PROCESS_ALL_ACCESS, false, GetCurrentProcessID);
        SetProcessWorkingSetSize(MainHandle, $FFFFFFFF, $FFFFFFFF);
        CloseHandle(MainHandle);
      except
      end;
      Application.ProcessMessages;
    
    end;
    
    end.
    
    • Upvote 3
  3. Good Morning,

    how do I enable extensions in UniGui in standalone mode?

    in my application I have a javascript that refers to the fonts folder, it has two files:

    unauthorized.jpg

    Obs. This problem does not occur when it is executed by IIS.

     

    • Add TUniImageList UniBitBtn property equal to the button of DevExpress

    button.jpg

     

    • Add to EmptyText property in the following components:

    UniComboBox, UniDBComboBox, UniDBEdit, UniMemo, UniDBMemo

     

    • Add to allowBank property components Input:

    edit.jpg

     

    edit%20alert.jpg

×
×
  • Create New...