theme/MDI caption painting issue
- New
- Issue
-
Vladimir Lopatin
- PowerBuilder
- Friday, 3 July 2026 08:22 AM UTC
PowerBuilder 2025 build 3711 theme/MDI caption painting issue.
When an MDI child window is opened while hidden or while the MDI frame is hidden, and later shown/maximized, the themed MDI child caption buttons are not painted.
Repro conditions:
Application uses ApplyTheme(<theme folder path>) in app open event
MDI frame application
MDI child has WindowState = Maximized!
Child is pre-opened hidden, then later shown/activated
Observed result:
With theme active, the MDI child caption buttons are invisible after the child is shown.
The buttons still exist and can be hit-tested.
If the user presses the left mouse button in the caption button area and slightly moves the mouse, old non-themed caption buttons appear and become clickable.
Without theme, the same flow works correctly. Buttons are visible 
If the same child is opened directly while the frame is already visible, themed caption buttons are painted correctly. 
Expected result:
The themed MDI child caption buttons should be painted correctly after a hidden/preloaded MDI child is shown and maximized.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.