Jump to content

azrael_11

Members
  • Content Count

    34
  • Joined

  • Last visited

Everything posted by azrael_11

  1. azrael_11

    Change font size in TstringGrid in Fmx

    I Think this is not correct grid.StyledSettings.size:=false; the correct on is grid.StyledSettings:= grid.StyledSettings - [TstyledSetting.Size];
  2. azrael_11

    Screen Cursor

    Try to change the screen cursor in FMX desktop application with no success. I find that you can do this. form1.cursor := crHourGlass; ///Make the job form1.cursor := crDefault; But it is not working. How can i do this.
  3. azrael_11

    Rest question (Newbie)

    Hi I Create an app for windows and i try to add forecast results on it. I use the Yahoo weather api but recently even the free access goes to oauth1 Authorization. here what Yahoo wants to access forecast results. GET /forecastrss?location=sunnyvale,ca HTTP/1.1 Host: weather-ydn-yql.media.yahoo.com Yahoo-App-Id: YOUR_APP_ID Authorization: OAuth oauth_consumer_key="YOUR_CONSUMER_KEY",oauth_signature_method="HMAC-SHA1",oauth_timestamp="YOUR_TIMESTAMP",oauth_nonce="YOUR_NONCE",oauth_version="1.0",oauth_signature="YOUR_GENERATED_SIGNATURE" cache-control: no-cache I go to REST Debugger tool provide by emb I add the get method in method url like this http://weather-ydn-yql.media.yahoo.com/forecastrss?w=2502265 I select the from authentication the method oauth 1 and i put my Client-ID and the Client-Secret and select the HMAC-SHA1 from OAuth-Assistant. Now how can i add Timestamp, oauth_nonce, BCS when i execute the request i get Connection=keep-alive Date=Fri, 18 Jan 2019 08:32:06 GMT Via=http/1.1 media-router-omega65.prod.media.bf1.yahoo.com (ApacheTrafficServer [cMsSf ]) Content-Length=0 Content-Type=application/json;charset=UTF-8 Age=0 Server=ATS WWW-Authenticate=OAuth oauth_problem="OST_OAUTH_SIGNATURE_INVALID_ERROR", realm="yahooapis.com" //here i get an error X-Frame-Options=SAMEORIGIN X-Content-Type-Options=nosniff X-XSS-Protection=1; mode=block Referrer-Policy=no-referrer-when-downgrade Thank you.
  4. azrael_11

    From TOKYO TO RIO

    Hello Try to move a project from tokyo 10.2.3 to rio 10.3.1 community edition. And have two questions 1. How to remove the inherited values from debug from include file search path? 2. In rio i install the pasLicVlc and everything is ok. Create a new multi application add the component TFmxPasLibVlcPlayer go to include file search path add the path source and source.fmx like tokyo do but compiler cant find it. Does this change in rio somehow? P.S. I have both installed in my computer Delphi 10.2.3 CE and Delphi 10.3.1 CE
  5. azrael_11

    From TOKYO TO RIO

    Nothing happend i start to believe something going with rio installation.
  6. azrael_11

    IcoMoon font with TText

    I add IcoMoon free Font https://icomoon.io/#preview-free with this code AddFontResource(PChar(extrafe.prog.Paths.Fonts + 'icomoon.ttf')); SendMessage(HWND_BROADCAST, WM_FONTCHANGE, 0, 0); Then i creat a TText component on run ex_load.Intro.Text:= TText.Create(ex_load.Intro.Video); ex_load.Intro.Text.Name:= 'Loading_Intro_Text'; ex_load.Intro.Text.Parent:= ex_load.Intro.Video; ex_load.Intro.Text.SetBounds(extrafe.res.Width- 300, 10, 300, 30); ex_load.Intro.Text.Font.Family:= "IcoMoon-Free'; ex_load.Intro.Text.Text:= 'e900'; ex_load.Intro.Text.TextSettings.FontColor:= TAlphaColorRec.White; ex_load.Intro.Text.TextSettings.Font.Size:= 32; ex_load.Intro.Text.TextSettings.HorzAlign:= TTextAlign.Trailing; ex_load.Intro.Text.OnClick:= ex_load.Input.mouse.Text.OnMouseClick; ex_load.Intro.Text.Visible:= True; That is suppose to see a black house instead you see a e900 Is there anything i forget or have something to see the icon of the icomoon in my text?
  7. azrael_11

    IcoMoon font with TText

    So the installation in every operation system is the best choice. Maybe we send a message to embarcadero developers to make a better in delphi solution. Thank you very much.
  8. azrael_11

    IcoMoon font with TText

    I plan in the future to be multi platform so what is the best way to do that? Thank you.
  9. azrael_11

    IcoMoon font with TText

    It returns the number 1 not 0 as suppose to return.
  10. azrael_11

    IcoMoon font with TText

    The font appear in the settings->personalization->fonts so that means it loading But i get a square instead of the house. But if i install the font permanently then everything works just fine...
  11. azrael_11

    IcoMoon font with TText

    Nope doesn't work.
  12. azrael_11

    TMediaPlayer and TMediaPlayerControlFMX

    Hello ... Try to add video files with TMediaPlayer and TMediaPlayerControl and always get "unsupported media file" for any video file type like *.avi, *.wmv or *.mp4. I install the latest K-Full media codecs and the problem remains the same. Anyone has some experience about TMediaPlayer? P.S. Even the MediaPlayerHD example provided from delphi not working. Thank you..
  13. azrael_11

    TMediaPlayer and TMediaPlayerControlFMX

    No i double check that the .mp3 files plays just fine. Thank you.
  14. azrael_11

    TMediaPlayer and TMediaPlayerControlFMX

    That i know, but mediaplayer from windows plays just fine. So something else create the problem.
  15. Hello i manage to send an HTML e-mail with formations but i can't add background color to main body. I try this with css but not working // This is for adding repeating image in background of body vHTMLBuild.HtmlFiles.Add(vBackground, 'back.png'); //vHTMLBuild.HtmlFiles.Add(vLogo, 'logo.png'); vHTMLBuild.Html.Add('<html>'); vHTMLBuild.Html.Add('<head>'); vHTMLBuild.Html.Add('<style>body {'+ 'background-image: url("back.png");'+ 'background-repeat: repeat;'+ 'background-color: #cccccc;'+ '}</style>'); vHTMLBuild.Html.Add('</head>'); vHTMLBuild.Html.Add('<body>'); vHTMLBuild.Html.Add('</body>'); vHTMLBuild.Html.Add('</html>'); and this // This is for adding only background color // vHTMLBuild.HtmlFiles.Add(vBackground, 'back.png'); // vHTMLBuild.HtmlFiles.Add(vLogo, 'logo.png'); vHTMLBuild.Html.Add('<html>'); vHTMLBuild.Html.Add('<head>'); vHTMLBuild.Html.Add('<style>body {'+ '{background-color: coral; '}</style>'); vHTMLBuild.Html.Add('</head>'); vHTMLBuild.Html.Add('<body>'); vHTMLBuild.Html.Add('</body>'); vHTMLBuild.Html.Add('</html>'); Thank you.
  16. azrael_11

    TIdMessageBuilderHtml add background color

    Remy this is a hell good Guide, it helps a lot. In the 1st your are right i miss that. In the 2nd case i forgot some " '+" so yes it is broken. Thank you.
  17. azrael_11

    Shellexecute cmd.exe with spaces

    Hello.. When i execute this command var program_path: string; begin program_path:= c:/myprogram.exe ShellExecute(0, nil, 'cmd.exe', PChar('/C ' + program_path+ ' -fg'), PChar(program_path), SW_HIDE); but when the program_path have a space like a "New folder" var program_path: string; begin program_path:= c:/New Folder/myprogram.exe ShellExecute(0, nil, 'cmd.exe', PChar('/C ' + program_path+ ' -fg'), PChar(program_path), SW_HIDE); Then nothing happens . I try this ShellExecute(0, nil, 'cmd.exe', PChar(AnsiQuotedStr('/C ' + program_path+ ' -fg', Char(34))), PChar(program_path), SW_HIDE); Nothing.
  18. azrael_11

    Rest question (Newbie)

    Maybe something like this in C++ code String signatureString = "GET&" + URLEncoder.encode(url, "UTF-8") + "&" + URLEncoder.encode(parametersList.toString(), "UTF-8"); Thank you
  19. azrael_11

    Rest question (Newbie)

    This is the official String signature generator that taken from C++ code form Yahoo. But i cant translated to delphi code. String signature = null; try { SecretKeySpec signingKey = new SecretKeySpec((consumerSecret + "&").getBytes(), "HmacSHA1"); Mac mac = Mac.getInstance("HmacSHA1"); mac.init(signingKey); byte[] rawHMAC = mac.doFinal(signatureString.getBytes()); Encoder encoder = Base64.getEncoder(); signature = encoder.encodeToString(rawHMAC); } catch (Exception e) { System.err.println("Unable to append signature"); System.exit(0); } Thank you
  20. azrael_11

    Rest question (Newbie)

    Finally i use the simple method of indy IdHTTP.get method to get result. But i don't know how to GENERATE SIGNATURE Any ideas... Thank you.
  21. azrael_11

    Particle system FMX

    Hell and happy new year. 2019 may be great year for delphi developers. First question of the year for me. Is out there and particle system for FireMonkey either 2D or 3D, free? I really make use of that for my program. Thank you.
  22. azrael_11

    Particle system FMX

    Thank you ill check that.
  23. azrael_11

    Virtual Box with MacOsx PAServer

    Hi I manage to setup a virtual box MacOsX high sierra machine I setup the network so the ip is always the 192.168.2.100 I run the paserver. The ip i get when i execute the i command is the above 192.168.2.100 The port i get when i execute the p command is the 64211 I put this settings in the main machine and it fails ... Someone solve this.... Thank you.
  24. azrael_11

    Virtual Box with MacOsx PAServer

    Finally i get it. The only thing is to reboot my pc and add bridged again and it works just fine. Thank you all.
  25. azrael_11

    Virtual Box with MacOsx PAServer

    I try almost all and Nat and briged nothing Do you know how can i know if my virtual machine is at my home network? Thank you.
×