My World 3 for Windows TM
logo

Making popups

The Dropzone1.mwb file contains a number of comments (lines beginning REM) which have no effect on its working.

The actual commands are contained in two procedures:

DEFPROCOnOpen

PLAY("This")

REM Open("2")

ENDPROC

DEFPROCOnDrop

REM allow other objects to be placed on top of this one

REM change the owner of the frame belonging to the pointer

REM to be the main screen

Sound(PATHGLOBALSHARED$+"Drop.wav",1,ASYNC%)

FrameChangeOwner("Pointer")

ENDPROC

PROCOnOpen opens the popup if you delete the REM from its second line.

(NB the popup name MUST match that in the mwb file - in this case 2 - any other name will cause an error)

POCOnDrop makes the background frame a dropzone, so that other files can be dropped on it in browser mode.

Menu Previous Next Contents