Jump to content

Lars Fosdal

Administrators
  • Content Count

    3323
  • Joined

  • Last visited

  • Days Won

    110

Everything posted by Lars Fosdal

  1. Aside from that aPort should be a Word to avoid invalid port values above 65535 ... TMS FixInsight supports a hint for this, though: O804 Method parameter ''Foo'' is declared but never used
  2. Signed .exes helps a little with internal validation and can stop arbitrary (driveby) .exe files from being run, but - yes - they can be cracked and spoofed. But - for such malevolent .exe files to propagate in your network, you already have had a bigger security breach.
  3. Lars Fosdal

    swagger help needed

    I am sure many people would love to see that on GitHub. Any chance?
  4. Lars Fosdal

    Send Email from Android with multiple CC addresses

    What if you separate them with a semi-colon instead of a comma?
  5. Moved the questions meta discussion to a separate thread.
  6. Ah, yeah... It is a bit embarrassing, but I still have not even looked at spring4d. I really should. I did follow it on GitHub, but never got around to actually delving into it.
  7. I still use Shell's Sort - but with a bit of extra work to keep the original ordering intact for identical elements. Is there a good implementation of Timsort for Delphi to be found?
  8. Lars Fosdal

    Help needed to register Delphi Community Edition

    Do they still exist? If you manage to find the list of forums (Blogs, Community, Forums), it simply points here: https://www.embarcadero.com/support Is there still an official support forum? It is not easy to find, if there is...
  9. Lars Fosdal

    Can't edit my post?

    When I write something lengthy, I sometimes do that in OneNote or Google Docs (Autosave FTW) before I paste it into the forum UI and do the final formatting touchups. Web UIs can be so unforgiving.
  10. @mtjmohr It is possible to lock a thread - but that is usually reserved for threads going wildly off in an non-friendly direction. Simply stop adding comments that are "off-topic" to old threads and start new threads for new topics instead.
  11. Quick sort is known to suffer performance-wise on already sorted lists, but with only 100 to 200 elements, that should not be the problem. Other than that, keeping your working data outside UI controls is sound advice.
  12. Lars Fosdal

    Popup window with focus inside.

    I noticed that f.x. Paint.NET has the desired behaviour - and respects the Windows theme. Is it still possible to use something like those old-school "spy" programs to see the window class and attributes of the tool windows, to see if anything stands out - or should we assume that it is all done with custom message responses and/or custom paints? None of these have controls with dropdowns or inputs, though - as those are on the toolbar. Not sure if that is coincidental or a design necessity. It also paints the captions alike when not focused.
  13. Lars Fosdal

    Popup window with focus inside.

    Well, back to the main windows title color trickeries for you, then 🙂
  14. Lars Fosdal

    Popup window with focus inside.

    What if you did not have a popup form as such, but instead have a frame floating in front in the form? You could make the frame look like a form, and it would take a little extra work to make it movable - and it would not be possible to position it outside the parent form.
  15. Lars Fosdal

    Popup window with focus inside.

    Does it really matter for the user if the title bar of the main window is not focused? The meaningfulness of the current focus color behaviour has become increasingly diluted by the Electron apps (and others) that run custom colors that doesn't respect the Theme settings at all - focused or not.
  16. Lars Fosdal

    Popup window with focus inside.

    It may be that the trick required is to fake the focus color of the main form when the popup is focused, and that the main form is refocused as soon as the mouse goes outside the popup.
  17. Lars Fosdal

    Popup window with focus inside.

    Ok, that is a challenge. What kind of control is it that gets focused in the popup? Would it be possible to deny the focus event somehow?
  18. Lars Fosdal

    The Case of Delphi Const String Parameters

    Looks like it is a check for passing the same param twice, not necessarily a check for the out param thing.
  19. Lars Fosdal

    Popup window with focus inside.

    My context was: "... have a popup window with some focused control (child window) in it, while keeping application's main window active" Isn't that typically what a tool window does? Win32 doc states for WS_EX_TOOLWINDOW:
  20. Lars Fosdal

    Popup window with focus inside.

    What about the ToolWindow window style on the popup?
  21. Lars Fosdal

    The Case of Delphi Const String Parameters

    It is not really a bug. The docs for the out parameter clearly state that the out variable contents will be discarded. The problem lies in that there is no warning that the value assigned will be discarded the before of the call, and not in the call. http://docwiki.embarcadero.com/RADStudio/Sydney/en/Parameters_(Delphi)#Out_Parameters
  22. Lars Fosdal

    The Case of Delphi Const String Parameters

    Seems that https://tmssoftware.com/site/fixinsight.asp has no warning for this case, either.
  23. Lars Fosdal

    Assigning Null value to Parameter

    We don't allow direct insert/update/delete SQL in our DB schemas, but always use stored procs to do that. Unit tests ensure that parameterisation to these calls has been done properly.
  24. Lars Fosdal

    Change notification to not show the exe's name?

    No problem 🙂
  25. Lars Fosdal

    Can an app beat a spreadsheet?

    I use Excel for my overtime balance sheet. I could have written a Delphi app, but Excel and SharePoint is very practical. I can edit the spreadsheet on the PC or on the phone on the go. I wonder, should I make another sheet to track my insomnia? 😛
×