ScreenCapture with SmartWindowRefresh & Frame3D :)
Posted: Thu Jun 08, 2006 4:30 am
First, this is not a bug as the docs advise to use SmartWindowRefresh with caution.
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).
Just trivia - And yes, it is pointless to use it in the above code, just illustrating.

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!
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