Hide app
Blitz3D Forums/Blitz3D Programming/Hide app
| ||
| Is it possible to run but >HIDE< an application made in Blitz3d. Like it is running but you don't see anything. |
| ||
you could use api_ShowWindow(hwnd,0)... but u will need user32.decls
Global hwnd=SystemProperty("apphwnd")
Graphics3D 800,500,0,2
SetBuffer BackBuffer()
cam=CreateCamera()
PositionEntity cam, 0,0,-4
cube=CreateCube()
Repeat
TurnEntity cube,.3,.4,.5
UpdateWorld
RenderWorld
Text 10,10,x
Flip
Delay 10
x=x+1
If x=200 Then api_ShowWindow(hwnd,0)
If x=300 Then api_ShowWindow(hwnd,1)
Until KeyHit(1)
End
cheers, chi |
| ||
| IIRC the hWND _can_ change after a graphics command so you'd want to look it up just before using showWindow or atleast after a graphics mode command. |
| ||
| In: Blitz3D\userlibs\user32.decls I have: .lib "user32.dll" ShowWindow%( hWnd%, hData% ) : "ShowWindow" In my code I do: Const WND_HIDE = 0 Const WND_SHOW = 5 hWnd = SystemProperty("AppHWND") ShowWindow(hWnd,WND_HIDE) |
| ||
| Thank you very much guys!! , it works :D |