Graphical problem with mdichild
Posted: Fri Jun 02, 2023 2:37 pm
Hi, i've noticed with Purebasic 5.73 x86, 6.01 x86-x64 and 6.02 x86-x64 on Win10 and Win2012R2 that when a StringGadget with password is placed on a Mdi windows and you press the CAPSLOCK the tooltip remain marked on the window, hiding what is under it, like the first image.
On a mdi child of a maximized window, the effect appears on other places, like the second image.
Disabling the "Enable modern theme support" the problem disappears, but with it disappears the tooltip of CAPSLOCK and more importantly the theme support.


On a mdi child of a maximized window, the effect appears on other places, like the second image.
Disabling the "Enable modern theme support" the problem disappears, but with it disappears the tooltip of CAPSLOCK and more importantly the theme support.


Code: Select all
#Main = 0
#MDIChild = 1
If OpenWindow(#Main, 0, 0, 400, 300, "MDIGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_SizeGadget | #PB_Window_MaximizeGadget)
If CreateMenu(#Main, WindowID(#Main))
MenuTitle("Menu index 0")
MenuTitle("MDI windows menu")
MenuItem(0, "self created item")
MenuItem(1, "self created item")
MDIGadget(#Main, 0, 0, 0, 0, 1, 2, #PB_MDI_AutoSize)
AddGadgetItem(0, #MDIChild, "child window")
StringGadget(2, 10, 10, 200, 30, "", #PB_String_Password)
; add gadgets here...
UseGadgetList(WindowID(#Main)) ; go back to the main window gadgetlist
EndIf
Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf