Community
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All categories
    • CoisesC

      A question about dark mode, plugins, and an owner-draw ComboBox

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      3
      0 Votes
      3 Posts
      94 Views
      CoisesC

      @rdipardo said in A question about dark mode, plugins, and an owner-draw ComboBox:

      Try passing the control’s handle to the ::SetWindowTheme function provided by the uxtheme header, using L"DarkMode_CFD" as the pszSubAppName; to restore light mode, call it with the same arguments, but change pszSubAppName to a null pointer.

      Thanks, Robert. At first attempt, this doesn’t appear to solve the problem.

      The colors are right with just NPPM_DARKMODESUBCLASSANDTHEME; the problem is that the static control shows unknown text instead of the selected drop-down entry, and attempting to select from the drop-down produces bizarre highlighting and tracking instead of what is expected (and still doesn’t set the static control). Adding the SetWindowTheme call doesn’t change that. Removing NPPM_DARKMODESUBCLASSANDTHEME, of course, makes everything else light, and for the control in question, SetWindowTheme only seems to change the drop-down chevron. Interestingly, NPPM_DARKMODESUBCLASSANDTHEME does get all the colors right, including in the owner-drawn drop-down; it just breaks the functionality in the process.

      The problem goes away entirely if I remove the CBS_OWNERDRAWFIXED style (but then, of course, it doesn’t display as intended, showing the color associated with each indicator that can be selected). That’s why I feel like the problem is most likely to do with the sub-classing. I can’t find any clear documentation on how all that works. I don’t even know why the controls are being sub-classed, and not just themed. Maybe there is a way to exempt that control from sub-classing, and do whatever it is that the sub-classing does in my own code?

      A pointer to actual documentation on this design, how it works and how it is meant to be used would be wonderful, but I’m guessing no such thing exists. :-(

    • CoisesC

      Search++: A work in progress

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      41
      4 Votes
      41 Posts
      2k Views
      CoisesC

      @guy038 said in Search++: A work in progress:

      -Then use the Tools > Marked text → Selections option

      => The 4 lines are ALSO selected

      Run a Ctrl + C action to put this selection in the clipboard Then, run a Ctrl + V action => The clipboard wrongly contains the string ABCDE

      So, despite of the Tools > Marked text → Selections action, nothing can be copied !?

      I wrote:

      After clicking on a button in a dialog, keyboard focus is on the button. (That’s standard Windows behavior, which I have not attempted to change in this case.) Your Ctrl+C went to the button. You needed to return focus to the document (e.g., Ctrl+N) before you could copy the selection.

      That is true, but there is also a flaw in Marked text → Selections that causes an extra, empty selection to be included at the beginning, which could cause unexpected results when pasting.

      A new version will be coming, but probably not until sometime tomorrow. Thank you for all your feedback.

    • donhoD

      All the off-topic go here

      Watching Ignoring Scheduled Pinned Locked Moved Boycott Notepad++
      6
      3 Votes
      6 Posts
      6k Views
      guy038G

      Hello, @jak and All,

      However, I noted that this software does not handle duplicate lines properly :-(( Indeed :

      Paste or write these three lines, below, in the List #1 dialog of the Compare Two Lists software of vovsoft.com : abcd AbCd ABCD

      Check the Settings > Case Sensitive option

      Click on the Remove Duplicates button, associated with the List #1

      => It remains the single line abcd, that is completely wrong :-((

      Indeed, as the Case Sensitive option is checked, these 3 lines should be considered as totally different ! Thus, these 3 lines should remain as it after the process !

      Best Regards,

      guy038

    • 一荣孤怪一

      奸叛国者,必万斩之

      Watching Ignoring Scheduled Pinned Locked Moved Boycott Notepad++
      7
      -1 Votes
      7 Posts
      1k Views
      Lycan ThropeL

      @Fii-Ert ,

      815
      我之前的评论依然有效。你那些显而易见的人身攻击,暴露了你在辩论中缺乏诚信;而你那种以为对手除了你们党派灌输的那些教条之外便对外部世界一无所知的臆想,更是与事实相去甚远。你可以试着去蒙骗那些涉世未深的人,但请把你的那一套宣传留给你该留的地方——也就是你那充满倒退色彩、妄图称霸世界的“中国梦”里去吧。

      如果你除了那些含糊其辞的陈词滥调和人身侮辱之外别无他物,那么中国人民当真是彻底迷失了方向,永远无法摆脱自我膨胀的桎梏,更无法拥有超越眼前狭隘视野的眼光。请你再消失个四年吧。我确信,贵国对外部网络的封锁或许是你这四年间音讯全无的部分原因,但这四年过去,你既没有变得更加清醒,也没有变得更加博学。好自为之吧,我们的对话到此为止。