Jump to content

Uwe Raabe

Members
  • Content Count

    2543
  • Joined

  • Last visited

  • Days Won

    147

Everything posted by Uwe Raabe

  1. Uwe Raabe

    Passive, non interactive custom form

    The docs say for WS_EX_NOACTIVATE:
  2. Uwe Raabe

    Passive, non interactive custom form

    That would still miss the To achieve that add a message handler like this: procedure WMNCHitTest(var Message: TWMNCHitTest); message WM_NCHITTEST; ... procedure TMyTransparentForm.WMNCHitTest(var Message: TWMNCHitTest); begin Message.Result := HTTRANSPARENT; end;
  3. Uwe Raabe

    Good data grid for VCL and FMX

    As already mentioned, TMS FNC Grid, but also TeeGrid from Steema. Technically these are not strictly the same component, because it must be derived from either a VCL or FMX TControl, but for the developer it comes quite near.
  4. Uwe Raabe

    Feedback Request - FastReports vs ReportBuilder?

    In a discussion I also mentioned that it is a Virginia based company, but other powers seem to know better. IMHO that is really sad, because I also like the product and find it more capable than others.
  5. Uwe Raabe

    Feedback Request - FastReports vs ReportBuilder?

    There are some concerns about the country of origin. Some companies have strict compliance rules, while others just have a bad gut feeling.
  6. Uwe Raabe

    TCalendarView returning a bad Date

    I guess, that is as designed. When you click on a date that date is selected. When you click again on the same date it is unselected and the Date property is set to NullDate: NullDate: TDate = -700000; You can avoid that when you set SelectionMode to smNone.
  7. Uwe Raabe

    TCalendarView returning a bad Date

    I'm a bit unsure what your example should achieve, as it doesn't match what you show here.
  8. As expected, I indeed get different outcomes with Win32 and Win64 targets. (Delphi 11.3 Patch 1)
  9. Well, as it fails in my case, I guess that is what undefined behavior means.
  10. Make the Owner of that TImage instance your component and set csSubComponent in the TImages ComponentStyle. That means, the image should be created like this: FImage := TImage.Create(Self); FImage.SetSubComponent(True);
  11. Uwe Raabe

    Good data grid for VCL and FMX

    For FMX?
  12. Reminds me of this one: Why does a call to GetDIBits fail on Win64?
  13. Hybrid, Bastard, Chimera or (my personal favorite) Manticore. But as we already can call a function like a procedure, it may be straight forward to declare a procedure with a return type - even if there is no way to retrieve that value. 🤔 Looking into details, a function internally is just a procedure with an additional parameter for the return value. It is the declaration that makes the difference. After all, I agree that BlockRead/BlockWrite should no longer be used.
  14. That's why it is called Compiler Magic.
  15. Hard to say without testing. It is an intrinsic function, so we cannot see what is done internally.
  16. Interestingly CodeInsight shows it as a procedure with a return value: The docs also state Result as an optional parameter, which indicates it is a procedure:
  17. Uwe Raabe

    Replacement for TBits?

    Wow! If my math is correct that needs more than 32GB of memory. I have no idea what the purpose is, but perhaps there are other approaches to achieve the same.
  18. Uwe Raabe

    Is there a Sunday between 2 dates ?

    It is not. The wording of the question leaves room for interpretation and the examples only cover the common case, but are leaving out the corner cases. If the specification were sufficient, I wouldn't have asked my questions.
  19. Uwe Raabe

    Is there a Sunday between 2 dates ?

    I am a bit baffled that the OP does not react at all.
  20. Uwe Raabe

    Is there a Sunday between 2 dates ?

    Yep, that was the background of these questions to the OP: The code I provided assumes that the start and end date are also counted when they fall on a Sunday. So unless the specification isn't refined any solution (start<=date<=end, start<date<=end, start<=date<end or start<date<end) is valid.
  21. Uwe Raabe

    JSON records in TFDMemTable

    Either the request specifies the 50 records per page or the server defaults or is limited to that. Try to increase the limit in your request or make multiple requests for each page and combine the result sets.
  22. Uwe Raabe

    Registering user activity?

    AFAIK, CodeSite is limited to Windows, probably even VCL only. Apart of that it is really great.
  23. Uwe Raabe

    Is there a Sunday between 2 dates ?

    This is another approach without any loops: function CalcSundaysBetween(StartDate, EndDate: TDateTime): Integer; begin var D1 := Trunc(StartDate); var D2 := Trunc(EndDate); if D2 < D1 then begin var tmp := D1; D1 := D2; D2 := tmp; end; var offset := (D1 + 6) mod 7; Result := (D2 - D1 + offset) div 7; { check if lower date is a Sunday } if offset = 0 then Inc(Result); end; BTW, despite the title says, according to the examples in his post the OP seems to be more interested in the number of Sundays instead of just their existence.
  24. Uwe Raabe

    Is there a Sunday between 2 dates ?

    How do you want to handle the case when both dates are equal as well as a Sunday? How, if they are not equal and both are a Sunday?
  25. Uwe Raabe

    Delphi REST frameworks that run on Linux?

    Well, at least RADServer is available for Linux.
×