Funny stuff if using SmartWindowRefresh with a Frame3D gadget with any flag set (flat, single, double). On my system it can be used to do a screen capture (no save, though) if placed correctly!
 (It also trashes things a bit if the window gets moved behind another, and only happens with Frame3D and flags on my box).
 (It also trashes things a bit if the window gets moved behind another, and only happens with Frame3D and flags on my box).Code: Select all
OpenWindow(0, 10,10, 520,390, "title",#PB_Window_Invisible|#PB_Window_SystemMenu|#PB_Window_MinimizeGadget)
CreateGadgetList(WindowID(0))
SmartWindowRefresh(0,#True)    ; <- Screen capture place to be :)
Frame3DGadget(0,1,1,518,388,"",#PB_Frame3D_Flat)
HideWindow(0,#False)
;SmartWindowRefresh(0,#True)    ; <- no capture here (move behind another window still a prob).
Repeat
  evWin = WaitWindowEvent()
  If evWin = #PB_Event_CloseWindow
    done = #True
  EndIf
Until done


