this one stumps me (my second day with PB):
When I have the window below open and open another window from the same application, the container gadget with id #20 disappears into nirwana, even if the two windows do not overlap (Windows 7, if that's of any interest)
As always,
thanks for any pointers
Kai
Code: Select all
Procedure OpenWindow_Window_1()
If OpenWindow(#Form_About, 488, 274, 450, 300, "About", #PB_Window_ScreenCentered|#PB_Window_TitleBar, WindowID(#Form_Main))
Frame3DGadget(#PB_Any, 10, 10, 430, 250, " Version Information ")
SetGadgetFont(TextGadget(#PB_Any, 60, 50, 200, 24, VersionInfo\ProductName), LoadFont(1, "Arial", 14, #PB_Font_Bold))
TextGadget (#PB_Any, 60, 80, 200, 24, VersionInfo\ProductInfo)
; >>> shadow first
ContainerGadget(10, 50, 120, 370, 120)
CloseGadgetList()
SetGadgetColor(10, #PB_Gadget_BackColor, RGB(60, 60, 60))
; >>> white rect next overlapping the shadow rectangle
ContainerGadget(20, 45, 115, 370, 120, #PB_Container_Flat)
TextGadget (22, 45, 20, 200, 24, VersionInfo\CompanyName)
TextGadget (24, 45, 50, 200, 24, VersionInfo\CopyRight)
TextGadget (26, 45, 80, 200, 24, VersionInfo\CompanyURL)
CloseGadgetList()
For i = 20 To 26 Step 2
SetGadgetColor(i, #PB_Gadget_BackColor, RGB(255, 255, 255))
Next
ButtonGadget(#Form_About_Button, 390, 270, 50, 25, "Close")
EndIf
EndProcedure


