Jump to content

Attila Kovacs

Members
  • Content Count

    1943
  • Joined

  • Last visited

  • Days Won

    25

Everything posted by Attila Kovacs

  1. Attila Kovacs

    Slow PgUp in TVirtualStringTree

    Yup. App takes over 200MB RAM and windows starts swapping, you can see the Page Faults in the task manager. Also thats why backwards is slower. I have no clue how can one influence that, never had a problem like that.
  2. Attila Kovacs

    Slow PgUp in TVirtualStringTree

    Just tried the exact same demo with 7.2.1 and 1million root nodes, it's fast as lightning in both directions.
  3. Attila Kovacs

    Issue with code-editor toolbars

    @Yaron Check "Always show designer items" under Environment Options / Tool Palette, and voila
  4. Attila Kovacs

    Issue with code-editor toolbars

    Isn't that, that you can pull out any toolbar to undocked state, close it and save desktop settings?
  5. Attila Kovacs

    Slow PgUp in TVirtualStringTree

    I can't exactly remember but I can see in my sources that I'm caching (also calculating myself, only once) the Nodeheight's and returning it in VSTMeasureItem event for VT. This would not make any sense if it wasn't too slow for me too, back to the days. Can't remember.
  6. 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.
  7. Attila Kovacs

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

    Don't do that.
  8. Attila Kovacs

    TJson - Strip TDateTime property where value is 0?

    Too bad you can't register a converter for simple types.
  9. 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. 🙂
  10. 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.
  11. Attila Kovacs

    Named pipe failure, multithreading and asynchronous I/O

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

    How to create a weak array?

    @Stefan Glienke thanks.
  14. Attila Kovacs

    Named pipe failure, multithreading and asynchronous I/O

    It works fine on Berlin U2. Edit: 10.3 CE too.
  15. 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.
  16. 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.
  17. 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.
  18. 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.
  19. Attila Kovacs

    A directory translate

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

    Unused local variables

    @Stefan Glienke off> btw, regarding to DelphiAST updates, are you planning to update your uses helper? </off
  21. 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
  22. 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?
  23. 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.
  24. Attila Kovacs

    List of all uses clause items in the whole project

    TListView.Items.BeginUpdate / EndUpdate?
  25. 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.
×