Jump to content

Lajos Juhász

Members
  • Content Count

    1068
  • Joined

  • Last visited

  • Days Won

    15

Lajos Juhász last won the day on May 8

Lajos Juhász had the most liked content!

Community Reputation

320 Excellent

2 Followers

Technical Information

  • Delphi-Version
    Delphi 12 Athens

Recent Profile Visitors

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

  1. It could be that when the library detects the debugger it slows down. You can try using Lazarus at Windows to see if it behaves the same.
  2. Lajos Juhász

    Introducing My Delphi TFuture PPL For Thread Safe UI

    The question was whether it is possible to check if the future is completed or not. Method Wait can be used to achieve that. (The design of wait could be improved to support non-blocking call, but we can argue if a couple of ms delay is significant or not.) Nobody mentioned that the future is going to be used in the main thread. Whenever ProcessMessages should be used or process paint messages depends on how long the calculation should take. If it is under a minute or the application should be blocked during the life of the method, it should not be used.
  3. Lajos Juhász

    Introducing My Delphi TFuture PPL For Thread Safe UI

    Read the documentation: function Wait(Timeout: Cardinal = INFINITE): Boolean; overload; You do not have to wait for infinite.
  4. Lajos Juhász

    Introducing My Delphi TFuture PPL For Thread Safe UI

    That is the idea behind future to do something until you definitely need the result of the future. If you want to check if the future is finished you can use the wait method.
  5. Lajos Juhász

    Dynamically Created Label Font Change

    The answer is the same as for the previous question you have to change the StyledSettings. In this case you are changing the Family and Style thus you have to remove those elements from the set, you do not change the Style of the font. You can replace: L1.StyledSettings:=L1.StyledSettings-[TStyledSetting.Style]; L2.StyledSettings:=L2.StyledSettings-[TStyledSetting.Style]; with: L1.StyledSettings:=[]; L2.StyledSettings:=[];
  6. Lajos Juhász

    TForm to TForm communication

    Calling a method of the target form?
  7. Lajos Juhász

    Problem with Calculated fields in a TFDQuerry

    First of all, DBGrid is not a dataset, it is a component that displays data. How should a component know if and when the field value must be calculated again and cannot use the cached value? On the other hand you can use fkInternalCalc (caches) stores the calculated values https://docwiki.embarcadero.com/Libraries/Athens/en/Data.DB.TFieldKind.
  8. CaretPositionProp is not nil, however when invoking the GetValyue in CaretPositionProp.GetValue self is an Inaccessible value: FMX.Memo.TCustomMemo.GetCaretPosition :00cfcac8 RawInvoke + $40 System.Rtti.RawInvoke(???,???) :00cfcead Invoke + $249 System.Rtti.Invoke(nil,(),???,???,True,True) :00cf5689 TRttiInstanceProperty.DoGetValue + $DD System.Rtti.TRttiInstanceProperty.DoGetValue(???) :00cf54ae TRttiProperty.GetValue + $26 Since it is pointing to an invalid address the Access Violation is when the code tries to execute Model.CaretPosition.
  9. Lajos Juhász

    certificate error

    Using Chrome there is still no warning. I got the warning using FireFox.
  10. Lajos Juhász

    certificate error

    Use Google Chrome, no error messages.
  11. Lajos Juhász

    May patch

    If you are using a standard windows user then you must start the IDE elevated in order to have a chance to verify which patches are installed.
  12. Lajos Juhász

    ToolBar just knoledg

    You see he images because the IDE will copy paste the reference to the imagelist on the DM. The compiler will find the DM containing the pictures and will show them. You can save the form, close all the projects and open the form the IDE will remove the reference to the datamodule and you will not see the pictures anymore.
  13. This also fails in XE5 and 11.2.
  14. Lajos Juhász

    Custom Time format in TDBGrid

    FireDAC is using the meta information from the connection library to determine the data types. You can try to use cast to change the data type for the field in your test application.
  15. Lajos Juhász

    Exception not caught

    The version also matters since it was changed for version 12. https://dalijap.blogspot.com/2023/09/coming-in-delphi-12-disabled-floating.html
×