Xref: utzoo comp.windows.news:2506 comp.windows.open-look:387 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!usc!elroy.jpl.nasa.gov!ncar!gatech!bloom-beacon!eru!hagbard!sunic!news.funet.fi!tut!ks From: ks@tut.fi (Syst{ Kari) Newsgroups: comp.windows.news,comp.windows.open-look Subject: a problem with tNt Message-ID: Date: 14 Jan 91 16:40:37 GMT Sender: news@funet.fi (#News ) Distribution: comp Organization: Tampere Univ. of Technology, Finland. Lines: 48 I'm trying to have a canvas which is interactively moved by the user. Here is a simplified code: /Movable ClassCanvas [] classbegin /FillColor 1 0 0 rgbcolor def /minsize { 50 50 } def /movefromuser { /movefromuser super send parent setcanvas (moved to % %\n) [ /location self send ] printf /paint parent send } def /MakeInterests { /MakeInterests super send /LeftMouseButton {pop /movefromuser } /DownTransition Canvas MakeInterest } def classend def /win [AbsoluteBag] [] framebuffer /new OpenLookBaseFrame send def 100 400 400 400 /reshape win send /m [100 100 Movable ] /addclient /client win send send /activate win send /map win send Every now and then (if mouse clicked very fast) the /movefromuser method seems to loose the UpTransition. The consequence that system keeps drawing the outline of the movable canvas and no other window can get a focus. Another (too fast) click is a way to get rid of this problem. Anybody had same kind of problems? Configuration: OW 2.0 SS1, color, 16MB, no GX -- % This article represents my personal views. % NeWS flash: "X is the Fortran of windowing systems." % Kari Systa, Tampere Univ. Technology, Box 527, 33101 Tampere, Finland % work: +358 31 162585 fax: +358 31 162913 home: +358 31 177412