Jump to content

Attila Kovacs

Members
  • Content Count

    1986
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by Attila Kovacs

  1. Attila Kovacs

    A directory translate

    @limelect ok, sorry but I'm not operating with explorer at all. I'm using Far Manager. btw. you could lookup libraries/pictures from the mentioned list and fire the same location in a new explorer window without knowing its real location.
  2. Attila Kovacs

    A directory translate

    @limelect In this case you could cache as a lookup table the entries from: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions and fire the explorer for example with: start shell:PicturesLibrary or explorer shell:PicturesLibrary where PicturesLibrary is the example, one element from the FolderDescriptions Then you will land there where you was and not in its translated dir.
  3. Attila Kovacs

    A directory translate

    does this help you to understand how "libraries" work? cd %appdata%\Microsoft\Windows\Libraries
  4. Attila Kovacs

    Unused local variables

    @Stefan Glienke off> btw, regarding to DelphiAST updates, are you planning to update your uses helper? </off
  5. Attila Kovacs

    Unused local variables

    Why would you bother some unused variables if you can live with those warnings? btw. copy paste into a text file and grep
  6. I have a form, designed size let's say 640x680. Everything dynamic, every control is inside a TGridPanel, aligned. Designed formstate wsMaximized, one button can minimize the app with Application.Minimize or ShowWindow(Handle, SW_MINIMIZE). Everything fine. For the fist sight. But: On startup, the form will be rendered in 640x680 then resized to fullscreen and re-rendered. On minimize, form will silently resized to 640x680, rendered while it's became invisible, and on restore resized again to fullscreen and re-rendered again. How should I skip the unnecessary resizings/renderings/align calculations?
  7. Attila Kovacs

    Minimizing and restoring a maximized window

    Hm, looks like the solution is easier than I thought. Instead of setting the formstate to wsMaximized, if I'm setting the form's width and height to the Screen's width and height in the OnCreate event, the problems are gone.
  8. Attila Kovacs

    List of all uses clause items in the whole project

    TListView.Items.BeginUpdate / EndUpdate?
  9. Attila Kovacs

    SVG Magic released

    Thomas, I do it already, there are at least 2 components which does about the same, except the auto DPI resizing, I have to do it manually and animation which I don't really care. But I'm always open for new things, I'm waiting for the answers.
  10. Attila Kovacs

    SVG Magic released

    Otherwise, really impressive. I like how the Imagelist captures the DPI change, the compressed storage, preview in imagelist-editor, plus the save button. The zooming tiger is so fast that I can't even believe that it's being rendered for every frame, is it some bitmap transformation? One thing I'm missing, linking the imagelists into a chain. Ergo, defining the svg's once, in a "main" imagelist and having multiple imagelists pointing to the "main" with different sizes. Great work
  11. Attila Kovacs

    SVG Magic released

    Lib does not work on a system with decimal separator different than point "."
  12. Attila Kovacs

    Grep search and DFM files

    And once you are done patching these into your search routines, one day you will face a component with its own TWriter and TReader which breaks all these regular rules and won't work, or in worst case, it will even screw up your concat logic and crash badly.
  13. Attila Kovacs

    10.3.1 has been released

    Theme XYZ... There is this IDE theme with the dark/blue etc. themes. Then there is this modernthemeXXX.bpl. And there are windows themes since 7 (I think). Am I right? Now,I killed the first two, then I came across this: http://docwiki.embarcadero.com/RADStudio/Rio/en/Disabling_Themes_in_the_IDE_and_in_Your_Application However, I can't see any difference if I remove the lines from this merge manifest. I'm also not sure how should this work. Why would windows look for this file? Btw. it's on W10, the article says 7/8. Does it apply for W10 too? Btw btw, it's still "CodeGear RAD Studio" in the manifest. Why? Would one need a new signature if it changes? Money? Edit: Ok, looks like from W10 things are changed, there is no more "classic" (stone age) theme anymore. I could also fix the dark "Standard" toolbar by resetting it to its defaults. It was just a bit strange that the latest IDE without any theming also differs a _LOT_ from Berlin.
  14. Attila Kovacs

    10.3.1 has been released

    You can still drop themeloader, themeXY, and of course moderntheme bpl too. Yes, it was also themed long before the "themes" (modernthemeXXX.bpl). But then you will face, how poor the new forms (like options) and some other parts are implemented. Un-/Wrong Aligned controls etc... And the "Standard" toolbar has a dark background, if I nuke modernthemeXXX.bpl and looking at the bare, winapi rendered IDE. And these things never will be fixed. But hey, on the other side, JAVA apps do not fall so slowly anymore.
  15. you have duplicate entries in your dbxconnections.ini, possibly
  16. Attila Kovacs

    Right Process for Changing an Application's Icon?

    TForm also has an Icon property. Just for the record. An assigned Icon could lead to the same symptoms.
  17. This was bothering me forever. At the beginning, because of collecting possible sensible data and keeping it in the memory, later, because if I needed it, it wasn't ergonomic enough. So I have bound it to the ctrl-shift-[F1/F2] for showing the window, navigate up/down, and copy to clipboard on releasing the keys. It's just a couple of lines, (no OTA on this), if one of you likes it I can put the code here later.
  18. Attila Kovacs

    Best site/source for SQL Server questions?

    I see, I'd check then "Row Versioning". I never used it yet but I'll try it myself when I find some time.
  19. Attila Kovacs

    Best site/source for SQL Server questions?

    WITH (NOLOCK) ? evt. Row Versioning
  20. Attila Kovacs

    10.3.1 has been released

    @Uwe Raabe Hehe, I managed it too a couple of weeks ago. Don't ask me how, but that was a looooong loooong debug session until I found the problem 😉
  21. Attila Kovacs

    best practise sharing : 2 buttons with mrOK on a form

    ModalResult is an integer value, so you can assign whatever you want, the form will close and ModalResult will hold this value.
  22. Attila Kovacs

    10.3.1 has been released

    I can easily reproduce this putting a 2nd unit1.pas anywhere in the search path and/or library path _AND_ storing the applications unit1.pas somewhere else like the .dpr itself. The search order is given. (btw. IDE dies badly if you put a file into the uses lists with 0 bytes length :D) Edit: Maybe some dead entries in the .dproj? It's suspicious that you didn't create a new project because it's not called Project1, did you copy the old one?
  23. Attila Kovacs

    10.3.1 has been released

    just for curiosity what happens if you write in the uses list : uses .... Main.pas in 'src\frm\Main.pas'; if it helps then you have an other main.pas in your search path and you should be able to open it with ctrl-click on the unit name in the uses list.
  24. @Bill Meyer Not really.. It was something like leaky-abstraction or similar can't recall.
  25. @Dalija Prasnikar What what the blog post about the leaking strings again? I can't find it anymore.
×