Jump to content

Jacek Laskowski

Members
  • Content Count

    267
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Jacek Laskowski

  1. Jacek Laskowski

    MMX 15.0.18 - font bug

    I know, but I can't reproduce. When something like that happens to me, I'm undo the change and repeating the edit, but the second time is okay. I'm really trying to understand that and... for now I'm too stupid 🙂
  2. Jacek Laskowski

    MMX 15.0.18 - font bug

    MMX from several versions already works really well, does not slow down, does not suspend the IDE, works quite smoothly. Thanks! I have only one more problem with it. Unfortunately I can't find the rule, although I've been looking for a month. Sometimes, very rarely, after editing a method in a class by ctrl+E and after approving the editing window by enter, MMX flips the header of the edited method from the public section just below the name of the class, as shown in the picture below. This problem is from about 3 versions back.
  3. Jacek Laskowski

    MMX 15.0.18 - font bug

    Now is ok, MMX works, thanks! Just a small remark, the labels do not fit in the frame 😉
  4. I have type: ISQLConfig = IDictionary<TSQLConfigIdentifier, IDBSQLRun>; How to register this type in Spring IoC container?
  5. I know. I'm not taking away your right to rest 😉 I asked here to get help from other S4D users, there are more people here. Thanks!
  6. Jacek Laskowski

    TPainBox, Handle and PostMessage()

    Is possible to send message to PaintBox? PaintBox inherits from TGraphicControl: TGraphicControl = class(TControl) private FCanvas: TCanvas; procedure WMPaint(var Message: TWMPaint); message WM_PAINT; protected procedure Paint; virtual; property Canvas: TCanvas read FCanvas; public constructor Create(AOwner: TComponent); override; destructor Destroy; override; end; As can be seen TGraphicControl receives a WM_PAINT message. But how to send it? Where to get the handle for the control? I need to notify the TPaintBox control of the need to repain from the worker thread.
  7. Jacek Laskowski

    TPainBox, Handle and PostMessage()

    Okay, I didn't know that Invalidate() would send a separate wm_paint message. It changes a lot. Sending a message from the work thread to the main one was an idea to communicate with the main thread, one of the possible ones. But actually the timer will be better. The data is already written to the appropriate structure, and it is enough to read and draw it periodically. Thank you all for your comments.
  8. Jacek Laskowski

    TPainBox, Handle and PostMessage()

    There is a big difference between notifying the main thread about the event and calling the drawing method in the main thread (from working thread). In the first case I can decide what I will do, I can even do nothing, in the second case drawing will ALWAYS be forced.
  9. Jacek Laskowski

    TPainBox, Handle and PostMessage()

    Calling Queue from the thread is a bad idea here. There are several threads, each of them processes some data, and one visual control displays them. If each thread is forcing a refresh, it will be a heavy load. And if the light gets messages, even from a few threads, it will decide how to refresh itself. ps. How to handle the message the parent got? I don't know who the parent will be?
  10. Jacek Laskowski

    TPainBox, Handle and PostMessage()

    Thanks, this idea seems interesting to me, because it focuses drawing in one place (several threads can add data). But there is a problem. The control inheriting from TPaintBox does not have Handle. How to get around it?
  11. Jacek Laskowski

    Differences in displaying the tab character

    I have TMemo and TVirtualTreeView on my form. Both controls set the same font, Ubuntu Mono. The text in both controls is the same, contains one tab (#9, marked in memo). Why does TMemo display it differently (wide) and VTV differently (narrow)?
  12. Jacek Laskowski

    Differences in displaying the tab character

    Thanks, this works!
  13. Jacek Laskowski

    Differences in displaying the tab character

    Thanks, but this solution not working with VTV. Possibly VTV not support change this parameter.
  14. Jacek Laskowski

    Speed up TDataSet Lookups

    @Dany Marmur When you click on the picture, a larger version opens. But the main question in this post is whether DBGrid is able to show combo with data in the cached lookup field? When the lookup field is constructed traditionally, with a dictionary dataset, then of course the combo list in DBGrid is not empty.
  15. Jacek Laskowski

    Speed up TDataSet Lookups

    @Dany Marmur I try this trick, it working, but I can't get values in lookup list of dbgrid. It's is impossible? What I'm doing wrong?
  16. Jacek Laskowski

    Experience/opinions on FastMM5

    I've got a callstack in FastMM4 set to 25, because that's the value that didn't cut off my log.
  17. Jacek Laskowski

    Experience/opinions on FastMM5

    Adjustable with source change?
  18. Jacek Laskowski

    Experience/opinions on FastMM5

    @Primož Gabrijelčič I know that, but changing sources to imho is not a configuration 🙂 It should be in the file FastMM4Options.inc
  19. Jacek Laskowski

    Experience/opinions on FastMM5

    @Pierre le Riche How deep is the call stack in FastMM5 reports? In FastMM4 it was hardcoded to 11, I reported an issue to add a depth setting option, but it was not added.
  20. Jacek Laskowski

    Fonts & ligatures

    Maybe @jbg know trick to permanently enable this feature in editor?
  21. Jacek Laskowski

    Fonts & ligatures

    Try to work with JS in the VSC editor, you will quickly change your mind.
  22. Jacek Laskowski

    Fonts & ligatures

    It just handles, only in specific situations, so I asked if it could be switched on permanently. I discovered it by accident, it only works if the text is a commentary and only if there is some unicode character pasted in the same line, here unicode ENVELOPE.
  23. Jacek Laskowski

    Fonts & ligatures

    Because the code looks better, neater and clearer. I use ligatures in VSC and I am a fan of them 🙂
  24. Jacek Laskowski

    Slow IDE

    I'm working with Delphi on a VMware machine, where I have a disk (with sources) connected from the host via "Folders sharing" mechanism. It's not too fast, but it usually works well. Sometimes Delphi can slow down a lot, e.g. I click the dot after the name of an object and wait a long time for a list of methods. So I fired a process manager called Process Hacker. And I watched what happens when Delphi "hangs and thinks". Here's the PH screenshot: It turned out that during the hanging, the I/O rate increases very much. But the Disk and Network ratios are not increasing. What could this I/O be?
  25. Jacek Laskowski

    Slow IDE

    Which drive? The system one in vm? The network one from the host? And how do you disable the cache?
×