[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Help!!! I'm "trap"ped...
- To: lubell@cs.UMD.EDU
- Subject: Help!!! I'm "trap"ped...
- From: Andrew L. M. Shalit <alms>
- Date: Mon, 15 Oct 90 17:28:12 -0400
- Cc: info-macl
- In-reply-to: Josh Lubell's message of Mon, 15 Oct 90 17:04:33 -0400 <9010152104.AA06993@soleil.cs.UMD.EDU>
From: Josh Lubell <lubell@cs.UMD.EDU>
How do I let the MACL top level event loop know about windows that I
create using traps? Do I need to create ObjectLisp Objects?
Here is what I'm doing:
(lisp:in-package 'ccl)
(%stack-block ((boundsrect 8) (title 255))
(%put-word boundsrect 100 0) (%put-rect boundsrect 100 2)
(%put-rect boundsrect 300 4) (%put-rect boundsrect 400 6)
(%put-string title "My Window" 0)
(setf my-window (_newcwindow :ptr 0 :ptr boundsrect :ptr title
:word -1 :word 8 :ptr -1 :word -1 :long -1 :ptr)))
This creates a window but I can't move it with the mouse or select it
from the MACL window menu.
You should create a new Object Lisp window with ONEOF, as pass the
the window record (which you got back from the trap call) as the
:WPTR argument.
-andrew