• Login
Community
  • Login

My plugin's toolbar sometime looses it's trigger to be drawn

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
1 Posts 1 Posters 88 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K
    klaus101
    last edited by klaus101 Jan 20, 2025, 3:21 PM Jan 20, 2025, 3:18 PM

    I’d finished my plugin using the demo template for Delphi & Lazarus, and i’m basically absolutely happy with the results.
    Unfortunately sometimes my docking form’s toolbar looses the trigger to be painted.

    When does this occur constantly?
    If i open “Find in Files” (via Ctrl+Shift+F, or via plugin’s toolbutton) and do a “Search all”.
    A docked window keeping the search result(s) will open - and the toolbar ‘disappears’: it appears to be empty - only the panel is shown, without buttons.

    Will the toolbar not be drawn at all?
    Not quite: if i move the mouse over a toolbutton, this single toolbutton will be (re-)painted.

    Will this never end before a next restart?
    Basically not. Unless i minimize/restore the NotePad++ window, or force a redraw of the docking form by moving the vertical splitter.
    Then the drawing is back again.
    But - if the search result window is still open at that time and i close it now, then i’ll have an empty toolbar again.

    Is such scenario already known somehow, and are there belonging notifications to reactivate the drawing?
    Does a notification exist that informs about the appearance or disappearance of such docked subdialogs?
    (If i’d know this i could enforce a repaint myself).

    1 Reply Last reply Reply Quote 0
    1 out of 1
    • First post
      1/1
      Last post
    The Community of users of the Notepad++ text editor.
    Powered by NodeBB | Contributors