Blitz (71/119)

From:David McMinn
Date:19 Jun 2001 at 20:40:26
Subject:Re: UnActive

Hi Daniel

> Is there any way in Blitz to de-activate active window? I also

I don't think so, unless you have a pointer to another window which you
can use with the OS commands to activate it.

> have problem with screen depth gadget. I mean, I'm writting a program,
> that should change screens(task) if the its own depth gadget will be
> press. Which way is the best to check if the myscreen is put to back
> (by pressig the d-gadget) and put my program to waiting state? It is

; Checks if the currently used screen is at the front or not. Returns -1
; for when the screen is not at the front, 0 if the screen is at the
; front or 1 if the screen is at the back (and I mean back)
Function.w MyScreenAtBack{}
x.w=0

*scr.Screen = Peek.l(Addr Used(Screen))

ibl.l=LockIBase_(0)
*ib.IntuitionBase = IntuitionBase ; from Elmore libraries
*ptr.Screen = *ib\FirstScreen
If *scr<>*ptr
x=-1
While *ptr\NextScreen
*ptr = *ptr\NextScreen
Wend
If *ptr=*scr Then x=1
EndIf
UnLockIBase_ ibl
End Function

NB: I haven't tested this



|) /\ \/ ][ |) |\/| c |\/| ][ |\| |\| | dave@blitz-2000.co.uk
http://members.nbci.com/david_mcminn | ICQ=16827694
I'm not tense, just terribly, terribly alert.

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie