Slimelite BBS

Asm Screen, no window

Back to AMOS_ECHO

From Blake Gaffney · 1996-04-12 23:25 · #75603 in AMOS_ECHO

In reply to Asm Screen, no window by Lee Kindness

"Fire, death and destruction. The Asm Screen, no window have come for All! The Asm Screen, no window have come for us all!" shouted Lee Kindness

 LK> MyNewWindow:
 LK>  dc.w 0,14,400,100
 LK>  dc.b -1,-1
 LK>  dc.l
 LK> CLOSEWINDOW,WINDOWCLOSE!WINDOWDEPTH!WINDOWDRAG!WINDOWSIZING!ACTIVATE,0,
 LK> 0
 LK>  dc.l WindowTitle,MyScreen,0
                       ^^^^^^^^
 LK>  dc.w 80,24,-1,-1,CUSTOMSCREEN

The indicated word is the offending statement. That field needs to hold the /pointer/ to window (the value returned from OpenWindow()), not a pointer to a longword holding the window pointer (not a double indexed pointer).

Modify it to this:

MyNewWindow:
 dc.w 0,14,400,100
 dc.b -1,-1
 dc.l CLOSEWINDOW,WINDOWCLOSE!WINDOWDEPTH!WINDOWDRAG!WINDOWSIZING!ACTIVATE
 Dc.l 0,0
 dc.l WindowTitle
MyScreen:
 Dc.l 0,0
 dc.w 80,24,-1,-1,CUSTOMSCREEN

That should do the trick.

Stay close to the Vorlon......             bgaffny@spuddy.mew.co.uk

... "You seek meaning? Then listen to the music, not the song" - Kosh

--- Spot 1.3a #1508
 * Origin: Code: Alpha 66 Zeta 3 (2:250/405.7)