Jump to content

Cristian Peța

  • Content Count

  • Joined

  • Last visited

  • Days Won


Cristian Peța last won the day on December 11 2020

Cristian Peța had the most liked content!

Community Reputation

54 Excellent

Technical Information

  • Delphi-Version
    Delphi 10.4 Sydney

Recent Profile Visitors

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

  1. I think a standard Delphi service would be using TService. http://docwiki.embarcadero.com/RADStudio/Sydney/en/Service_Applications Just create a service project and put this in OnExecute event: procedure TService1.Service1Execute(Sender: TService); begin while not Terminated do ServiceThread.ProcessRequests(True); end;
  2. Cristian Peța

    Hiding a public property in a descendant class

    Interestingly, but not a problem in this case. I replaced an old component with a new one and I wanted to be sure there is not code that will set the Text property directly. I don't force it in such a way so no problem.
  3. Cristian Peța

    Print PDF file in Android\iOS application

    I have not tried but I think that a share should work. Then the user will choose to sent by email, print or something else.
  4. Cristian Peța

    Hiding a public property in a descendant class

    TMyEdit = class(TCustomEdit) private function GetText: String; public property Text: String read GetText; end; implementation function TMyEdit.GetText: String; begin Result := TCustomEdit(Self).Text; end; It works !!!! Text property is now read-only. Do someone knows some side effects of this? There was somewhere a discussion about hiding properties when you re-declare it but I don't remember.
  5. Cristian Peța

    Hiding a public property in a descendant class

    More I read on this subject I understand this is right.
  6. TMyEdit = class(TCustomEdit) private property Text; end; I try to hide the Text property of TCustomEdit in a descendant class but it doesn't work. Code insight (LSP) in other unit does not see it but the compiler does not complain if I use it. Can I do something to hide the Text property?
  7. Cristian Peța

    Casting pointer to TBytes

    You can not because a dynamic array is not just the data. There is also the length and reference count. But you can pass a pointer and length of that memory,
  8. Cristian Peța

    iOS, Error e8000084

    iOS 14 is supported only with Delphi 10.4 iOS 13 starting with Delphi 10.3.3 Also "iOS Simulator version 11 or later is currently not supported. You can open Xcode > Preferences > Components , to download and install an earlier version of the iOS Simulator. " http://docwiki.embarcadero.com/PlatformStatus/en/Main_Page
  9. Does this app compiled for 64-bit works? Have you tried to upload only with 64-bit binaries?
  10. Cristian Peța

    Delphi XE Zebra scanner

    For your scenario reading the COM port is a better solution. We have only one form that displays many details related to scanned bar-code. Usually the user will work all the day only with a bar-code scanner. No keyboard, no mouse. And the installation must be as easy as possible. Some want to work on Linux, others on smart TV Box's with Android... so this year we moved this part in browser.
  11. Cristian Peța

    Delphi XE Zebra scanner

    A little off-topic but this depends. I prefer the scanner to be a keyboard because every client want to user their scanner and setup is very easy. Just plug the scanner into USB and is working. With VCL I use Form.OnKeyDown with Form.KeyPreview=True. Even in browser I use document.addEventListener("keydown", WAKeyDown). This way if the web app tab in the browser has focus I receive the input from the keyboard. No need to have a edit box in focus. And reading a serial port in Javascript is not so straightforward. But there can be a issue if you want to distinguish between a real keyboard and barcode reader.
  12. Cristian Peța

    git and Delphi tooling?

    We use Fork but you need to test to see what is best for you. Never used Delphi integration.
  13. Cristian Peța

    XCode 12 compile error

    --old news--
  14. Cristian Peța

    Outdated Delphi Roadmap

    Patch is just released. https://blogs.embarcadero.com/delphi-compiler-and-lsp-patch-for-rad-studio-10-4-1/
  15. Cristian Peța

    My custom component becomes NI>

    You told as that a component is becoming nil. Nil can be a reference to an instance of a class (namely a variable), not a class itself. If table1 is that component that is becoming nil then put a data breakpoint on table1. More exactly on table1's address (namely @table1). But it is enough to write table1 into the addresses field of "Add Data Breakpoint" dialog. @Remy Lebeau thank you very match for this. I needed a data breakpoint sometimes but I didn't know they actually exists.