Jump to content

TurboMagic

Members
  • Content Count

    254
  • Joined

  • Last visited

  • Days Won

    9

TurboMagic last won the day on December 29 2022

TurboMagic had the most liked content!

Community Reputation

102 Excellent

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hello, I have a TfrxChartview TChart on a FastReports report. It contains a bar series and I'd like to find out the length of the marks added to the bars in order to be able to move their y-position if they do not fit on the bar itsself (as they would overlap with the bottom axis then). Additionally one needs to find out the bar length for this. The latter one seems to work somehow. The retrieval of the marks dimensions doesn't work as it does in a small VCL test application where the chart is sitting on a form. There you can use this one: Chart.Series[si].Marks.Positions.Position[i].Bounds.Width But when using the chart on a FastReports report Chart.Chart.Series[si].Marks.Positions.Position is nil. The values have been added via Chart.Chart.SeriesData.YSource, as the data is not comming from a database. Any ideas?
  2. TurboMagic

    TChart bottom axis label issue

    Ok, for a regular TChart on a form that stuff works. But I forgot to tell, that this is a TfrxChartview on a Fast Reports report. I'll create another post for the problems I have there now.
  3. TurboMagic

    TChart bottom axis label issue

    Thanks for all this information! Will ty it out as soon as I get back to this project after pentacoste!
  4. TurboMagic

    TChart bottom axis label issue

    Hello, I've got a 2D TChart with 2 bar series in Delphi 12.3 (included Standard edition oif TChart). Both are set to Stack -> Side all, because the 1st series shall use the left axis, the 2nd series shall use the right axis. Bottom axis label format has been set to text and when clicking a button in the application I add a few bars for both series like this: Chart.Series[0].Add(5, 'Bar name1 Series 1'); Chart.Series[1].Add(500, 'Bar name1 Series 2'); It displays the labels on the bars of the 1st series but never on the 2nd series. Attached is my test application. Another question would be if it is possible to have a custom setting for the Marks position for an individual bar of a series. Or asked otherwise: as can seen in my demo I aligned the marks so that they are painted over the bar from the upper end of the bar. This is good, except for bars with a 0 value as the 0 is the painted into the bottom axis. I wanted to avoid that one for such bars but keep the mark painted over the bar and not on top of it. Last question: I cannot seem to register a login for the support forums on steema.com. I do not find a way to do so and the admin contact page is disabled as well. Anybody any clue whether this is intentional or how to desl with this? ChartTest.zip
  5. TurboMagic

    TChart in Delphi 10.0 vs Delphi 12.2

    If the issue has not been reported to Steema I doubt we'll get it fixed.
  6. TurboMagic

    New additional tool for Android available in 12.3

    I must second fisipjm! Sorry for that! But if things work out as they should (afaik somebody was/is on holiday which is needed for that) there should be an improved V1.10 available in the near future.
  7. TurboMagic

    New additional tool for Android available in 12.3

    Thus is unfortunatelly not in my hands. The ball is in EMBT's field 😉 But I was informed that the required engineer was on holiday and will be tasked with publishing this as soon as he's back. Do you have any immediate need for this tool in the new version? If so contact me.
  8. Hello, if you haven't noticed yet: with 12.3 Embarcadero also released a new additional tool for subscription owners via GetIt package manager (Tools/GetIt package manager). It is called "The Android SDK manager GUI" and can be used to update Android SDK/NDK etc. in a graphical way. It is a replacement for the graphical SDK manager the Android SDK once contained, which cot replaced by a cumbersome batch file (yes, the batch file is good for automation, but otherwise cumbersome). The SDK manager GUI can also export the selected configuration and import it on another PC, great for easy synchronisation of development machines. What the tool doesn't do is to update the paths in the IDE and it is unfortunately not added to the menu in the IDE.
  9. Hello, in order to decide how to properly fix this issue in DEC (Delphi Encryption Compendium) I would like to look up the exact original definition of the KDF algorithms for the case of an empty key/password being given as argument. Unfortunately that is in some IEEE paper/standard, which is behind a paywal. Is there anybody having access to IEEE P1363? Here's the DEC issue: https://github.com/MHumm/DelphiEncryptionCompendium/issues/76 Cheers TurboMagic
  10. If you want to print bitmaps to an ESC/POS printer via sending raw ESP/POS commands you need to send 1 column and 8 rows of the image per byte. Means: there is a command which you tell how many columns youl will send and then you send one byte for each column containing the data for 8 rows bitwise encoded. So if you send bytes with the most significant bit and the last significant bit set but no other bits set with that command you'd get two lines in parallel. But the question would be why to do it that way? Why not use TPrinter's capabilities?
  11. TurboMagic

    Delphi 12 is available

    Well, you get something for free! And for quite a lot of folks its good enough. It's also more up to date than previous community editions were.
  12. TurboMagic

    Creating Firebird embedded backup fails

    A solution was found now: The FBDriverLink of the FDConnection used in the application must have Embedded := true as well!
  13. Hello, I'm using D12.1, FireDAC and Firebird 5.0 embedded. I try to create a backup using TFDIBBackup but that fails with this failure message: "Unable to complete network request to host "xnet://Global [FireDAC][Phys][FB]invalid service handle [FireDAC][Phys][FB]invalid service handle" I can successfully create a backup using gbak from command line though. I'm also quite sure creating a backup from my application works when Firebird server is installed. Here's my TFDIBBackup initialization code: constructor TDBBackup.Create(const DatabaseFileName : string; const VendorLib : string); begin inherited Create; FFBDriverLink := TFDPhysFBDriverLink.Create(nil); FFBDriverLink.VendorLib := VendorLib; FFBDriverLink.Embedded := true; FFBBackup := TFDIBBackup.Create(nil); FFBBackup.ConnectTimeout := 0; FFBBackup.Database := DatabaseFileName; FFBBackup.DriverLink := FFBDriverLink; FFBBackup.Password := c_DBPassword; FFBBackup.QueryTimeout := 2; FFBBackup.UserName := c_DBUserName; FFBBackup.Verbose := true; FFBBackup.Protocol := TIBProtocol.ipLocal; FFBBackup.AfterExecute := OnBackupFinishedInternal; FFBBackup.OnProgress := OnBackupProgressInternal; FFBBackup.OnError := OnBackupErrorInternal; FIsBackupRestoreActive := false; end; Vendor lib points to a fbclient.dll which exists and has the other libraries for embedded in the same directory and all other fbclient.dlls on the system are the exact same version and have the exact same other files in their directory: fbclient.dll firebird.conf firebird.msg gbak.exe gfix.exe ib_util.dll icudt63.dll icudt63l.dat icuin63.dll icuuc63.dll isql.exe msvcp140.dll vcruntime140.dll intl\fbintl.conf intl\fbintl.dll plugins\chacha.dll plugins\engine13.dll What am I'm doing wrong? Regular DB SQL queries via FireDac work just fine. Cheers TurboMagic
  14. Hello, this is the same issue as the one described in the German DP (https://www.delphipraxis.net/215286-port-nicht-erzeugt-2.html), but there I don't get any further ideas. So I hope somebody here can help me. I have some application written in Delphi 10.3.3 which provides two endpoints and has worked in the past. One endpoint delivers a simplistic status website and the other can be used to query data via REST. For both the user can configure the port and whether to use HTTPS or not. If HTTPS is used a self signed certivicate is used and the application provides V1.0.2j of the OpenSSL libraries. Now I have the reproduceable case that the port for the REST interface is never created (says netstat -p TCP on the cmd.exe console) and the one for the status website some times is but most of the times isn't. The code for creating both DataSnap server instances is identical and looks like this: if FMyServiceEnabled and (not FRESTServer.Active) then begin FRESTServer.Bindings.Clear; FRESTServer.DefaultPort := FMyServicePort; FRESTServer.Active := True; log.Send(LevelBlue, cCategory, 'REST Server gestartet. Port: ' + FMyServicePort.ToString); end; if FStatusWebsite and (not FWebServer.Active) then begin FWebServer.Bindings.Clear; FWebServer.DefaultPort := FStatusPort; FWebServer.Active := True; log.Send(LevelBlue, cCategory, 'Web Server gestartet. Port: ' + FStatusPort.ToString); end; When looking into the logs generated, they show that this code was actually run. The issue happens on a customers PC and on my own machine as well. With another tool suggested by somebody in German DP (writing in EN 😉 ) I was able to see that both bind ahnd listen are called on the socket. But netstat doesn't show it... What can cause this and how to further diagnose this? Esp. what data snap does?
  15. How is your text output handled within the VST? It could be that you're doing tings in OnGetText which are a bit time consuming.
×