Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 07/10/24 in all areas

  1. Vincent Parrett

    Tool to sort units used in project by dependency

    Pro tip, don't use the Library Path for anything other than the rtl/vc/fmx. Only add the third party libs your project actually needs to the project search path. That avoids the compler trawling through a bunch of paths that it doesn't need to.
  2. Kas Ob.

    TControlList — need help!

    @#ifdef Well , while i hate my life nowadays, and while just waiting for the blackout to brighten my day after only 3 hours of power, i tried to build you something Far from finished or polished, take it as example or prototype for what you can do with custom drawing, notice it is 10000 strings ! ListBoxAsStringList.zip My suggestion is to use VirtualTreeView, i couldn't find working copy of VTV on my PC now, and don't want to waste time downloading my encrypted archives from the cloud, so i used TListBox, it is simple easy and pretty straight forward. Notes: 1) i didn't use FillRec on the whole Listbox, while it is more efficient and faster to clear the background for all the items in one go, this will introduce an ugly flicker in the bottom half, do the system rendering which doesn't wait for anyone, by clearing the background for each item in time, we prevent this flicker, but will introduce small performance hit in overall drawing. 2) i disabled the selected item highlighting, because it does need little different approach, yet it is easy, just adjust the canvas brush color before the FillRect, this will be up to you to implement, as i said i don't have time and don't have the skins on the latest IDE versions to test and play with. 3) customize as you wish, like ... can you this ? ( there is no noticeable performance change) Hope that helps, also never underestimate Windows custom drawing, it is fucking blazing fast when done right.
  3. dummzeuch

    Tool to sort units used in project by dependency

    cnpack has a tool to remove unused units from the uses list. It's not perfect, but a good starting point.
  4. Brandon Staggs

    Tool to sort units used in project by dependency

    For me the issue has always been LSP and code insight, which seem to work better with tidy uses clauses.
  5. JonRobertson

    Tool to sort units used in project by dependency

    Yes, it is noticeable. My last four projects have been migrating applications from Delphi 7 to 11.3. There were dozens of units referenced that could be either moved to implementation or removed completely. I've been able to get rid of numerous circular dependencies. Although the compile time reduction is not huge, it is noticeable even on a 200K loc project. Sadly, it takes Azure DevOps longer to check out the repo than building the source.
  6. JonRobertson

    Tool to sort units used in project by dependency

    Give it a shot and let us know.
  7. Brandon Staggs

    Tool to sort units used in project by dependency

    Yeah, they are indeed mutually exclusive. Each unit has it's own dependencies. If you want the units listed in order of when they are needed, you aren't going to be able to make them look "tidy." Sounds like you want a hybrid approach. I don't see how that could be done without manual work, but besides, it would defeat your originally stated goal. Personally, I find the overhead of locating units during compilation to be insignificant, so I always prefer a logical ordering because my brain will be slowed down by illogical ordering more than the compiler will be sped up by it! I my experience, the only thing that really matters is not having unnecessary units in the interface section. Anything that isn't needed should be removed, and anything that isn't needed before the implementation section should be moved to the implementation section.
  8. Alexander Sviridenkov

    TControlList — need help!

    HtPanel (DX canvas) https://drive.google.com/file/d/1Eig5hvn619Mz3ATh7lTl65Zh3TUN4Vey/view?usp=sharing
  9. Yeah, it should look like this, originally. But unfortunately the AI refuses to reproduce logos, socks, styles and so on, in the right way. Nevertheless, I'm sure this is quite the right picture of a messy programmer, at least as I am If anybody will tell you that AI ist not ruling the word yet, this proofs him work. AI already dictates how the the political correct content shall look like and refuses to produce anything else you ask for.
  10. Patrick PREMARTIN

    Cross platform color picker and palette library

    In that case, perhaps adding https://www.whocanuse.com/ could be fun ?
  11. DelphiUdIT

    What's the general opinion on v12?

    Apart from the fact that we are in the section: nothing else.
  12. programmerdelphi2k

    Access violation

    if your problem can be some component (3rd party) installed, for example, you can try see on REGISTRY in HKEY_CURRENT_USER\Software\Embarcadero\BDS\<<NN.0>>\Known IDE Packages HKEY_CURRENT_USER\Software\Embarcadero\BDS\<<NN.0>>\Known Packages and delete the line where any package non-RAD and try run again... if the problem is here, just try recompile/reinstall the problematic package (3rd party component) you see?
×