Jump to content

Cristian Peța

Members
  • Content Count

    344
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by Cristian Peța


  1. 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.


  2. 7 hours ago, Ilie Tache said:

    - Apple iPad 9.7” (2018), 32GB, Wi-Fi, Space Grey (iOS 14.4)

    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

     


  3. On 12/11/2020 at 8:35 AM, Lars Fosdal said:

    My perspective is from the VCL app where any number of frames and forms can have focus.

    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.


  4. 9 hours ago, Lars Fosdal said:

    or the scanner presents as a virtual keyboard (wedge configuration). The latter is something that we avoid.

    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.

    • Like 1

  5. 2 hours ago, alogrep said:

    table1:=Tslim.Create

    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.

     


  6. 3 hours ago, David Schwartz said:

    Nobody likes that we do work in one folder and git is constantly shuffling around files in other folders, and throwing up conflicts because someone else is in the middle of doing some work that has nothing to do with what you're working on. Branches only seem to make things worse. When I do a branch, I only want to focus on a given folder.

    In this case I think it would be better to have all that folders in one repo. Then a branch would not be disturbed because all is there.

    You will have to deal with conflicts only at merge.


  7. 7 hours ago, Dalija Prasnikar said:

    I never needed forums to solve my problems... I could find all the answers on SO and official documentation. 

    If you are not in the first wagon then yes, others ask for you. :classic_laugh:

     

    I just setup a SSH and Git as server on Windows using OpenSSH that comes with Windows 10 but this came only two or three years ago and information is not yet well polished. Git as a server on Windows is also not so frequently used.

    It was enough the information I found, I did not need to ask for help, but it was harder than I thought. Now I think that doing the same thing on Linux is easier because almost all info is for Linux.

    Installing Subversion server on Windows was a piece of cake some years ago.


  8. D10.4 with i7-8700K

    For me anywhere in the source IDE CPU is 10% and very responsive.

    At the bottom when white space appears is 25% and a little slower but not an big issue. I rarely use scrolling when bottom white space is shown.

    I think this issues is tied to CPU speed + Number of LOC displayed when bottom white space is shown. No graphic card involved.
     

    Try to make the IDE height smaller in order to display fewer lines of code and for sure it will be faster and.... useless.

    Does it behaves better on host? I think does not.

×