Jump to content

Tokay

uniGUI Subscriber
  • Posts

    839
  • Joined

  • Last visited

  • Days Won

    19

Posts posted by Tokay

  1. Unexpectedly it turned out that FMX successfully works with UniGUI:

    uses
      FMX.Graphics, FMX.Surfaces;
    
    procedure TMainForm.UniButton1Click(Sender: TObject);
    var
     sp: TBitmapCodecSaveParams;
     bs: TBitmapSurface;
     B:  TBitmap;
    
    begin
     B := TBitmap.Create;
     B.LoadFromFile('/home/user/Documents/test/123.bmp');
     B.Resize(100, 100);
     B.SaveToFile('/home/user/Documents/test/out.bmp');
     sp.Quality := 70;
    
     bs := TBitmapSurface.Create;
     bs.Assign(b);
    
     TBitmapCodecManager.SaveToFile('/home/user/Documents/test/out.jpg', bs, @sp);
     bs.Free;
     B.Free;
    end;

    This code change size of bmp and converts bmp to jpg file.

    • Thanks 1
  2. I've added to HTMLFrame '<h1>Pure CSS Star Rating Widget</h1>'

    Added to customeCSS your CSS.

    Added to CustomFiles and ServerModuleBeforeInit.

    Downloaded font-awesome.css and fontawesome-webfont.woff from mentioned URL.

    Run app, but it does not show rating stars. Only 'Pure CSS Star Rating Widget' and nothing more.

    issues in the browser console are absent.

  3. Does it possible to add one customized additional folder for custom scripts? Folder should not be related to any UniGUI folder. We have for now three external folders that we should to store in the "C:\Program Files (x86)\FMSoft\Framework\uniGUI\uni-1.90.0.1562\" folder. We've rewrite your runtime installator from scratch in order to be able put our customised scripts to the system protected folder. It's really huge work, but we done it because the UniGUI does not provide such mechanism.

    Ideal way for us is to add additional folder here (TUniGUIServerModule.HandleFileRequest) :

      if LocalDoc = '' then
         LocalDoc := ExpandFilename(ActiveServerRoot + ADoc);
      if LocalDoc = '' then
         LocalDoc := ExpandFilename(CustomFolder + ADoc); //new folder
     

×
×
  • Create New...