Blitz (258/459)

From:Rob Hutchinson
Date:17 Jan 2000 at 10:24:20
Subject:Re: syntaxerror in bb2mui?

Hello Emil
> Yello,
>
> I just downloaded BB2MUI1.10, and when i try to compile example i get
> funny error
>
> MUINotifyApp #MUI_Window1,#MUIA_Window_CloseRequest,1,1
> MUINotifyApp
> #MUI_BetterString,#MUIA_String_Acknowledge,#MUIV_EveryTime,2
> MUIOpenWindow #MUI_Window1 <- this cause error!

Thats because I have forced MUIOpenWindow into a function. (sorry
if this is a real problem)...

The reason for this, is because the old library did no checks to see if
the window had actually opened or not.. Now it checks the window status
after the #MUI_Window_Open request to see if it did get opened and
returns false or the window's address (I think)..
Note that this is extremely important because if your window didn`t
get opened due to low memory situations, your task is dead.

Anyway, you should use something like this:

If MUIOpenWindow(#MUI_Window1)=False
BeepScreen 0
!StackClose
;
; Close the program down, free all resources etc, etc
;
End
EndIf

Sorry about the confusion, I`ll write better docs for the whole thing
one day :)

Chow!



Rob,



MAILTO:rob@satanicdreams.com | #ICQ:# 27181384 | #FAX:# 0870 0888470
#SDS FOUNDER:# URL: http://www.satanicdreams.com/
#PROJECT INFO:# Minimum Safe Distance [55%] http://msd.satanicdreams.com/
[ Oxymoron: Unborn child. ]

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