Jump to content

Edwin Yip

Members
  • Content Count

    430
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Edwin Yip

  1. FYI: mORMot 2 (in-development) rest client: https://github.com/synopse/mORMot2/tree/master/src/rest mORMot (production-ready) rest client: TSQLHttpClient class from this unit: https://github.com/synopse/mORMot/blob/master/SQLite3/mORMotHttpClient.pas
  2. I think it's not about generics, but the use of 'System.Net.URLClient, System.Net.HttpClient, System.Net.HttpClientComponent’ which were introduced since XE7. I'm not sure the best replacement for the rest client for supporting older Delphi versions, maybe Indy? But my choice will be mORMot's rest client if I were you.
  3. Hello Graham the original developer of KsStripe! That'l be great! I just wonder, how difficult will it be to back-port it to earlier XE* versions of Delphi. I might do that when I need it :)
  4. There used to be an open source project at https://github.com/gmurt/ksStripe but the repository is no longer available. I have a copy but haven't tried it yet, it seems not to be compatible with my XE4. It's licensed under Apache and I assume I can re-upload it to github. Let me know if anyone is interested to contribute to it?
  5. Go to Cn Pack -> Script Wizard > Script Library. Add a new item then set the file name and keyboard shortcut for it.
  6. Edwin Yip

    Organizing enums

    But the IDE is the key to be productive. I'd go with the approach suggested by Darian Miller - use unit-scoped enums. Most of the time, enums should be visible to the entire app scope and it's reasonable to put them in a commonly used unit. That being said, I actually have the best option (for this very specific need) to suggest: == Use scoped enums and use CodeInsightPlus to replace the IDE's code-complete. From their product page, it says:
  7. Sorry, I didn't expect the flame war, but was only sharing interesting and useful stuff, and expected to gain insightful comments from senior programmers (and we received some) :)
  8. Use the attached Pascal script file with CN Pack's "Script Expert", set a shortcut for the script. This is the only workable solution ATM AFAIK. {*******************************************************} { } { Pascal Script Source File } { Run by RemObjects Pascal Script in CnWizards } { } { Generated by CnPack IDE Wizards } { } { Author: Edwin Yip } {*******************************************************} program ToggleMsgView; uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs; const cMinMsgViewHeight = 130; begin // Toogle the message view of the Delphi IDE if CnMessageViewWrapper.MessageViewForm.Visible then CnMessageViewWrapper.MessageViewForm.Hide else begin if CnMessageViewWrapper.MessageViewForm.Height < cMinMsgViewHeight then CnMessageViewWrapper.MessageViewForm.Height := cMinMsgViewHeight; CnMessageViewWrapper.MessageViewForm.Show; end; end. ToggleMsgView.pas
  9. Thanks for your input David. I'm not able to interpret that :P
  10. @Stefan Glienke, Oops! Sorry, a little mistake I made at that moment, need not to say, I clearly know that you now maintain Spring4D and Eric mains DWS, both write good low-level code :) Thanks for info about the performance comparison, it's definitely helpful!
  11. Edwin Yip

    Unit scope names in IDE - possible 2+ lines?

    Ah huh! Good finding! The IDE expert (plugin) was originally developed by RRUZ and I only did a little customization for my own needs.
  12. Edwin Yip

    Unit scope names in IDE - possible 2+ lines?

    Hello Dinar, You are correct that RRUZ and dummzeuch are both "experts in the expert area" :D, Plus @David Hoyle, except me :D All I know is that CN Pack can turn the editor tabs into multi-line mode, exactly like the VS screenshot Mike posted , but unfortunately, that's for D7 and bellow only.
  13. Edwin Yip

    Sourcecode for BOLD published at GitHub

    IIRC Bold was a hot for RAD. I don't really know too much about it. Do you think it's still relevant today except for maintaining existing projects that use Bold?
  14. Edwin Yip

    best way to display a list of panels?

    Well, that's how a software is getting better and better :D
  15. Edwin Yip

    best way to display a list of panels?

    @aehimself, Great! I think you can also implement the 're-order handles' like that~
  16. Delphi-DirectUI is what I found today, it's a new set of nice-looking UI controls based on Graphics32. Unfortunately, it's not open-source nor free. See the attached screenshot.
  17. Hi Lars, I didn't notice that, there are several *Scene libraries in the Delphi community and I'm always puzzled. you can do what the forum rules instruct.
  18. Edwin Yip

    NetCom7 clients chat implementation

    I see, that's my feeling too when facing general marketing. I guess only the marketing/advertising of open source Delphi libraries will make me happen. That's a very rare exception. BTW, what do you mean by "burnt myself" in this context?
  19. Edwin Yip

    NetCom7 clients chat implementation

    Not if it's about a Delphi/Pascal library component. On the opposite, I feel exciting when I hear a Delphi/Pascal library is advertised as fast, lightweight, high performance, or something like that, maybe the Delphi community/market is very small and we really need quality libraries and components. And my past experience shown that when a Delphi library/component is advertised as fast, it's usually fast, at least it proves the author really has a passion, or really tried to make it fast.
  20. Edwin Yip

    best way to display a list of panels?

    I was in the same shoe with yours and I ended up using a similar approach like what @aehimself described, and actually his approach solves the issue you described. I don't see any other approach better than this in terms of flexibility with the current implementation of VCL. I think the keys are: use a client-aligned TScrollbox to get unlimited amount of rows. Add the frames one after one. To solve the splitter mis-position issue, use the Tag property of the frames to map a pair of frame and splitter, and correct the position error by using something like `TSplitter(frames.Tag).Top = frames.Top + frame.Height`. Note, the standard TSplitter has the same issue you described. Not sure if there is another way to solve it.
  21. Edwin Yip

    PyScripter reached 1 million downloads from Sourceforge

    I tried it many years ago. I'll use it if I use Python, because I can customize anything with Delphi! Well done @pyscripter!!
  22. Edwin Yip

    TEdit with enhanced keyboard support?

    Is there an enhanced TEdit (single-line edit, not multi-line editing such as TSynEdit) with enhanced keyboard support? By enhanced keyboard support I mean for example, Ctrl+Backspace to delete a word, and so on.
  23. Edwin Yip

    TEdit with enhanced keyboard support?

    And it seems that the HeidiSQL author went for another approach. Will check it later.
×