notepad-plus-plus / notepad-plus-plus/notepad-plus-plus
Q: Strange behavior creating a dockable dialog using PythonScript plugin
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 29.4k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
Description of the Question
Doackable dialogs created with Python and the PythonScript plugin behave strangely because they are either not "themed" or embedded controls "visually" disappear unless you hover over them.
As far as I know, a docked dialog is automatically "themed", which can be seen even if the controls are not visible, but this is not the case if I do a print output inside the WM_PAINT, but then the controls are visible !??.
The test dialog contains only 2 standard buttons, no user specific controls.
Does anyone have any idea why this is happening?
Debug Information
Notepad++ v8.5.4 (64-bit)
Build time : Jun 17 2023 - 20:42:45
Path : D:\Tests\npp\854\x64\notepad++.exe
Command Line :
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 10 Pro (64-bit)
OS Version : 22H2
OS Build : 19045.2728
Current ANSI codepage : 1252
Plugins :
mimeTools (2.9)
NppConverter (4.5)
NppExport (0.4)
PythonScript (3.0.16)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the dockable dialog behavior described for the PythonScript plugin on Windows, comparing the visual result with and without print output inside WM_PAINT. The issue names no source files or tests; done would require identifying the cause and defining a verified fix for the missing themed controls.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, python
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100