Jump to content

Lajos Juhász

Members
  • Content Count

    1063
  • Joined

  • Last visited

  • Days Won

    15

Everything posted by Lajos Juhász

  1. Lajos Juhász

    TCalendarView returning a bad Date

    I can confirm using both OnClick and OnChange events that I can receive: 45113 -700000 45113 -700000 45113 -700000 45113 -700000 45113 -700000 45113 -700000 45113 -700000 45113 -700000 45113 -700000 45113 -700000 45113 -700000
  2. No. The reason to create a thread is to move to the next line without waiting for a block of code (inside the thread) to complete. That's the purpose for threads in every platform.
  3. On the other hand I believe you should learn a bit more about multi threading.
  4. On mobile devices you should never block the main thread (or risk that the OS will terminate your program). Without more details we cannot help you. Most probably you want to disable the UI elements that are not allowed while your background thread is executing.
  5. https://blog.marcocantu.com/blog/2014_may_background_delphi_android_threads.html
  6. Lajos Juhász

    SynEdit Accessibility Support

    Thank you pyscripter for the enormous work on synedit.
  7. Lajos Juhász

    Is there a Sunday between 2 dates ?

    you can ask AI to write this code. An anser from Bing function IsSundayBetween(StartDate, EndDate: TDateTime): Boolean; var Day: TDateTime; begin Result := False; // assume there is no Sunday between the dates Day := StartDate; // start from the start date while Day <= EndDate do // loop until the end date begin if DayOfWeek(Day) = 1 then // check if the day is Sunday begin Result := True; // set the result to true Break; // exit the loop end; Day := Day + 1; // increment the day by one end; end;
  8. Lajos Juhász

    Linux Issues: unsupported DW_FORM value: 0x1f

    there is an open RSP - https://quality.embarcadero.com/browse/RSP-39793.
  9. There is one acient technique: https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Testing_Installed_Components
  10. Lajos Juhász

    delphi Twebbrowser Javascript error

    https://stackoverflow.com/questions/25843845/how-to-have-delphi-twebbrowser-component-running-in-ie9-mode
  11. Lajos Juhász

    'for i:= 0 to 4' does 6 loops when not in Debug mode

    My guess is different memory layout in debug and release mode. That's why the code inserted to debug changed the behaviour of the bug.
  12. Lajos Juhász

    Setting Font Color on certain controls

    If you enable Runtime Themes you delegate the drawing for some components to Windows and the colors from the Active Windows Theme is used. In ancient versions of Delphi this was done through XPManifest. You can use VCL Styles to customize the drawing.
  13. Lajos Juhász

    0/0 => EInvalidOp or NAN ?

    var x: real; begin SetExceptionMask(exAllArithmeticExceptions); x:=0/0 ; showmessage(FloatToStr(x)); Most probably some dll changes the exception mask.
  14. Lajos Juhász

    File Search

    One possible reasould could be that FindFirst would not return subfolders that doesn't match the pattern. If agree there are bugs for example (SR.Attr and faDirectory) = SR.Attr should be (SR.Attr and faDirectory) = faDirectory
  15. Lajos Juhász

    File Search

    Your code is working for me. A note that you're leaking memory findfirst will allocate some memory and that must be released with FindClose(SR). Also you should never write Form1.Listbox1.
  16. Lajos Juhász

    Delphi Professional Database Connectivity

    it's already discontinued product )
  17. Lajos Juhász

    TMainMenu shortcut key not working

    I've never tested myself. A google search returned posts from 2001 that this is how MS Windows is designed: http://www.delphigroups.info/2/63/320384.html.
  18. Lajos Juhász

    set of object instances

    the original post doesn't said if it's a multiset or not.
  19. Lajos Juhász

    set of object instances

    The list would contain the control twice (like a multiset). If you don't want an object twice you can before add check indexof.
  20. Lajos Juhász

    set of object instances

    You could also use a generic list? That also has everything you wrote above.
  21. Lajos Juhász

    Intercept "WM_COPY" on Windows

    I believe in Delphi you should use TDataObject.
  22. Lajos Juhász

    iOS_64 linking problem

    The legal way is to file a bug report at https://quality.embarcadero.com/secure/Dashboard.jspa. The trial is valid for 30 days you can use that while it's valid and hope that embarcadero will release a patch for the CE edition or state clearly that it should not contain these files.
  23. Lajos Juhász

    How To Debug This Memory Leak?

    I would install the fulll fastmm4 version from https://github.com/pleriche/FastMM4 and enable LogMemoryLeakDetailToFile and FullDebugMode.
  24. Lajos Juhász

    OpenToolsAPI challenge.

    It should be possible with Delphi 11.3 https://github.com/Embarcadero/RADStudio11Demos/tree/main/Object Pascal/ToolsAPI/Editor Demos
  25. Lajos Juhász

    Strange one with zLib..

    Most probably one of other units define the TCompressionStream class. You can try to rearange your uses statement or prefix the classname with the unitname.
×