Jump to content

xorpas

Members
  • Content Count

    94
  • Joined

  • Last visited

Posts posted by xorpas


  1. On 4/29/2024 at 2:03 AM, Remy Lebeau said:

    The standard FMX TMemo simply does not support HTML (or even basic text formatting in general).  You will have to use a 3rd party control (or make your own from scratch) to display rich/formatted text.

    Thank's mr REMY

    On 4/29/2024 at 2:07 AM, Dave Nottage said:

    You might be able to modify this code to use TMemo instead of TLabel:

    https://github.com/grijjy/CodeRage2019/tree/master/HtmlLabel

     

    Thank's mr Dave  I will see it


  2. I use exoplayer jar to play mp4 using alcino when run apk I get this error 

    Project1.apk raised exception class EJNI with message 'Java type JExoPlayer_Builder could not be found'.

     i add 4 jar files  exoplayer-core.jar,  exoplayer-dash.jar, exoplayer-hls.jar , exoplayer-ui.jar ,

    how reolve it ?


  3. I have a problem ,when i click on the edit of rest debugger the keyboard  is showing  ,the same as when create app in delphi with edit the controltype is styled by default , when clicked on the edit the keyboard runing but when change the default to (platform) the edit not run the virtual keyboard , i think that the problem is in the unit fmx.control for that i change the default controltype for show platform as  default that can appears instead of styled but also not work 

     

    picture 

    1.thumb.png.883c58dbdcfa38e455d8678d89b7c160.png2.thumb.png.723b1fc35017a763c49a5eaecb15c4b8.png3.thumb.png.d5d3adb4995301737fd0cc8586a39ad4.png


  4. how can create a round picture from bitmap  i check this code from chatgpt but not work  it save the image as it

     procedure SaveRoundedImage(SourceImage: TBitmap; SavePath: string);
    var
      RoundedImage: TBitmap;
      RoundedRect: TRectF;
    begin
      // Create a new bitmap for the rounded image
      RoundedImage := TBitmap.Create;
      try
        RoundedImage.SetSize(round(SourceImage.Width), round(SourceImage.Height));
    
        // Clear the bitmap (transparent background)
        RoundedImage.Clear(TAlphaColors.Null);
    
        // Create a rounded rectangle
        RoundedRect := TRectF.Create(0, 0, RoundedImage.Width, RoundedImage.Height);
        RoundedRect.Inflate(-0, -0);
    
        // Draw the rounded image onto the new bitmap
        RoundedImage.Canvas.BeginScene;
        try
          RoundedImage.Canvas.Fill.Color := TAlphaColors.White; // Fill with white background
          RoundedImage.Canvas.DrawRect(TRectF.Create(10, 10, 200, 270),
                                     30, 60,
                                     AllCorners, 100,
                                     TCornerType.ctRound);
          RoundedImage.Canvas.DrawBitmap(SourceImage,
            TRectF.Create(0, 0, SourceImage.Width, SourceImage.Height),
            TRectF.Create(0, 0, RoundedImage.Width, RoundedImage.Height), 1.0, True);
        finally
          RoundedImage.Canvas.EndScene;
        end;
    
        // Save the rounded image to a file
        RoundedImage.SaveToFile(SavePath);
      finally
        RoundedImage.Free;
      end;
    end;

     


  5. I have an issue with firebase send phone verification code  

     

    format('https://www.googleapis.com/identitytoolkit/v3/relyingparty/sendVerificationCode?key=%s',[FIREBASE_API_KEY])

     i think it need a captcha or a token 

    get this error   

    {
      "error": {
        "code": 400,
        "message": "MISSING_REQ_TYPE",
        "errors": [
          {
            "message": "MISSING_REQ_TYPE",
            "domain": "global",
            "reason": "invalid"
          }
        ]
      }
    }

     

×