Jump to content

Lajos Juhász

Members
  • Content Count

    263
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Lajos Juhász

  1. Lajos Juhász

    How to set TBytes array to the file size ?

    The file doesn't contains UTF-16LE text. You should check for the encoding of the file.
  2. Lajos Juhász

    How to set TBytes array to the file size ?

    In that case load it directly to the field you're going to use to store it in the database.
  3. Lajos Juhász

    How to set TBytes array to the file size ?

    If it's a textfile you can use memo.lines.loadfromfile or read it using TFileStream. For example: var f: TFileStream; buff: TBytes; begin f:=TfileStream.Create('d:\temp\test.txt', fmOpenRead+fmShareDenyNone); try SetLength(buff, f.Size); f.ReadBuffer(buff, f.Size); memo1.lines.text:=TEncoding.ANSI.GetString(buff); finally f.Free; end; end;
  4. Lajos Juhász

    How to set TBytes array to the file size ?

    Why are you doing this? You are allocating 33 bytes and in the next line assign the variable to a new array that is returned by TBinaryReader.ReadBytes.
  5. Lajos Juhász

    How to set TBytes array to the file size ?

    Why do you think that you have to convert NativeInt to Integer?
  6. Lajos Juhász

    Opinions about Pascal vs C/C++ IDE

    You mean something like this? https://blogs.embarcadero.com/start-building-apps-for-single-board-computers-with-delphi-or-c-builder-now/ I didn't watched it as it is not my thing.
  7. Lajos Juhász

    TControlList - Jump to Selected

    I've tested with Delphi 10.4.2 1. A dirty trick would be first set the ItemIndex under the control you would like to select on the top: ControlList1.ItemIndex:=40+(ControlList1.Height div ControlList1.ItemHeight); ControlList1.ItemIndex:=40; 2. OnItemClicked is fired when the itemIndex changes (both from code or user navigation).
  8. Lajos Juhász

    TTitleBarPanel and System/Custom Buttons

    For me it was also hard to set it up correctly for the first time. Unfortunately even in Delphi 11 it has some drawing issues RSP-36291.
  9. Lajos Juhász

    TTitleBarPanel and System/Custom Buttons

    This is on Delphi 10.4.2. CustomTitleBar.zip
  10. Lajos Juhász

    TTitleBarPanel and System/Custom Buttons

    Did you set the required properties for CustomTitleBar? For example: CustomTitleBar.Control = TitleBarPanel1 CustomTitleBar.Enabled = True CustomTitleBar.SystemColors = False CustomTitleBar.SystemButtons = False CustomTitleBar.BackgroundColor = clRed CustomTitleBar.ForegroundColor = 65793 CustomTitleBar.InactiveBackgroundColor = clWhite CustomTitleBar.InactiveForegroundColor = 10066329 CustomTitleBar.ButtonForegroundColor = 65793 CustomTitleBar.ButtonBackgroundColor = clRed CustomTitleBar.ButtonHoverForegroundColor = 65793 CustomTitleBar.ButtonHoverBackgroundColor = 16053492 CustomTitleBar.ButtonPressedForegroundColor = 65793 CustomTitleBar.ButtonPressedBackgroundColor = 15395562 CustomTitleBar.ButtonInactiveForegroundColor = 10066329 CustomTitleBar.ButtonInactiveBackgroundColor = clWhite
  11. Lajos Juhász

    tImageCollection in COM DLL - EXE needs manifest ???

    You mean this reference at https://docwiki.embarcadero.com/Libraries/Sydney/en/Vcl.Controls.TImageList: Note: Image lists depend on Comctl32.dll. If the system does not have the latest version installed, there may be problems getting images to appear.
  12. Lajos Juhász

    Mouse busy in IDE

    You can try to turn off the LSP.
  13. Most probably the packages are not on the path?
  14. Lajos Juhász

    Delphi 11, migrate or wait

    Here are RSP-s for the debugger: https://quality.embarcadero.com/browse/RSP-29768 https://quality.embarcadero.com/browse/RSP-36155 https://quality.embarcadero.com/browse/RSP-36520 https://quality.embarcadero.com/browse/RSP-36611 Sometimes I do get similair to this in Delphi 11: https://quality.embarcadero.com/browse/RSP-33299
  15. Lajos Juhász

    Using Resource in Email

    I doubt this will work, you've to include the picture into the e-mail, I don't know any e-mail client that would search the HDD for an e-mail attachment. You should check out: https://www.indyproject.org/2005/08/17/html-messages/ and https://www.indyproject.org/2008/01/16/new-html-message-builder-class/
  16. Lajos Juhász

    Delphi 11, migrate or wait

    You should learn how to use a search engine. https://www.embarcadero.com/app-development-tools-store/delphi
  17. Lajos Juhász

    Bookmarks dead?

    Feature Matrix: IDE productivity tool: Bookmarks*, which extends the IDE’s previous marking of locations in the code editor. * Available for download in the GetIt Package Manager (not for Community Edition)
  18. Lajos Juhász

    Delphi 11, migrate or wait

    Most probably. Unfortunately Delphi 10.4 debugger doesn't have any issue to access the property :(.
  19. Lajos Juhász

    Delphi 11, migrate or wait

    Of course for this I cannot create a test case, but it's in a real code and all references are valid: PPodsetnik.fQuery.Connection:=PDatabase; Now we would expect that PPodsetnik.fQery.Connection = PDatabase:
  20. Only on Apple hardware is legal. Is it illegal to run Hackintosh? According to Apple, Hackintosh computers are illegal, per the Digital Millennium Copyright Act. In addition, creating a Hackintosh computer violates Apple's end-user license agreement (EULA) for any operating system in the OS X family.
  21. Lajos Juhász

    ADS to MySQL

    From Delphi XE4 Embarcadero has a command line tool refind.exe to migrate components and properties (https://docwiki.embarcadero.com/RADStudio/Sydney/en/ReFind.exe,_the_Search_and_Replace_Utility_Using_Perl_RegEx_Expressions).
  22. While mobile platforms are changing every year Delphi Community version is not a viable product. Every version of the mobile platforms requires changes in the development tools and community edition don't cover that. Even with paid versions of Delphi sometimes you have to wait a longer period of time for a solution (fix for the platform change).
  23. Lajos Juhász

    Delphi 11, migrate or wait

    As I wrote a Hello world example will work. In order to break things you have to work on a real application. I am not allowed to publish the source code for any application I am working on. For you maybe it's blablabla for others maybe it worth knowing the state of Delphi 11.
  24. Lajos Juhász

    Delphi 11, migrate or wait

    In Delphi 11 for some cases you have a cycle: compile, make changes, restart the ide, recompile. About the debugger unfortunately it looks like that the developers that should work on that failed to install Delphi 11. Evaluate/Modify, Watch list working only for a Hello World projects. Double click on call stack when the weather is good outside may navigate to the code. Local variables can also display strange values. Also have to use the new broken LSP, sometimes restart of the IDE help other times you just don't have luck with it.
  25. RAD Studio Community edition doesn't support Linux. According to https://www.embarcadero.com/products/delphi/starter/free-download it should have compilers for: Windows, macOS, iOS, and Android.
×