Jump to content

Attila Kovacs

Members
  • Content Count

    1938
  • Joined

  • Last visited

  • Days Won

    25

Everything posted by Attila Kovacs

  1. Attila Kovacs

    Decorating read-only controls

    @Der schöne Günther Indeed. And also funny. But does not apply then styles are overriding every design time decorations except I'm implementing one custom hook for every different control types.
  2. Attila Kovacs

    HELP: Decoding of data stored in array of char - RFID tag's

    Don't do that.
  3. Attila Kovacs

    TJson - Strip TDateTime property where value is 0?

    Too bad you can't register a converter for simple types.
  4. Attila Kovacs

    TJson - Strip TDateTime property where value is 0?

    Kinda. Convert it first with ObjectToJsonObject then remove the time 0 pairs then generate the string. Or create a json wrapper for TDateClass where HasDate and NoDate are strings. In this case you have to take care of the Date-Format. btw. "1899-12-30T00:00:00.000Z" is a valid date. 🙂
  5. Attila Kovacs

    Named pipe failure, multithreading and asynchronous I/O

    I can't recompile it on w7 but the exes are working just fine in a w7 VM for me.
  6. Attila Kovacs

    Named pipe failure, multithreading and asynchronous I/O

    I'm pretty sure. Win10
  7. Hi, how can I declare a TArray<IFoo> where the elements are weak referenced?
  8. Attila Kovacs

    How to create a weak array?

    @Stefan Glienke thanks.
  9. Attila Kovacs

    Named pipe failure, multithreading and asynchronous I/O

    It works fine on Berlin U2. Edit: 10.3 CE too.
  10. Attila Kovacs

    preventing my program from stealing the focus

    The simplest way, without having to reimplement a couple of things from the original CMShowingChanged is leaving the form on wsMinimized and then calling a SW_SHOWNOACTIVATE: private procedure CMShowingChanged(var Message: TMessage); message CM_SHOWINGCHANGED; procedure TForm3.CMShowingChanged(var Message: TMessage); begin inherited; ShowWindow(Handle, SW_SHOWNOACTIVATE); end; This will also result a "restore" animation, if enabled.
  11. Attila Kovacs

    preventing my program from stealing the focus

    I'd try to override the "show" process and call showwindow with SW_SHOWNOACTIVATE. Maybe there is already something in VCL.
  12. 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.
  13. 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.
  14. Attila Kovacs

    A directory translate

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

    Unused local variables

    @Stefan Glienke off> btw, regarding to DelphiAST updates, are you planning to update your uses helper? </off
  16. 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
  17. 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?
  18. 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.
  19. Attila Kovacs

    List of all uses clause items in the whole project

    TListView.Items.BeginUpdate / EndUpdate?
  20. 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.
  21. 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
  22. Attila Kovacs

    SVG Magic released

    Lib does not work on a system with decimal separator different than point "."
  23. 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.
  24. 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.
  25. 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.
×