Graphical problem with mdichild

Just starting out? Need help? Post your questions and find answers here.
johnstock
New User
New User
Posts: 4
Joined: Sat Aug 04, 2012 4:32 pm
Location: Italy
Contact:

Graphical problem with mdichild

Post by johnstock »

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.

ImageImage

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
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Graphical problem with mdichild

Post by mk-soft »

Windows Bug ...

Add

Code: Select all

SmartWindowRefresh(#Main, #True)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
johnstock
New User
New User
Posts: 4
Joined: Sat Aug 04, 2012 4:32 pm
Location: Italy
Contact:

Re: Graphical problem with mdichild

Post by johnstock »

Thank you!
Works perfectly now
Post Reply