Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!uunet!tut.cis.ohio-state.edu!gryphon.cis.ohio-state.edu!meekins From: meekins@gryphon.cis.ohio-state.edu (Tim Meekins) Newsgroups: comp.sys.apple2 Subject: Re: problems positioning cursor in window Message-ID: <118378@tut.cis.ohio-state.edu> Date: 8 May 91 14:44:18 GMT References: <3520@kluge.fiu.edu> Sender: news@tut.cis.ohio-state.edu Organization: The Ohio State University, Department of Computer and Information Science Lines: 24 In article <3520@kluge.fiu.edu> acmfiu@serss0.fiu.edu (ACMFIU) writes: > >i create the window with _NewWindow2. i then want to write a string to >the upper left corner of the window (where * is located). so, i just >_WriteCString my string and it appears there. now, as far as i know, * >has local coordinates (0, 0). so, if i _LocalToGlobal (0,0) and then >_MoveTo the result of this, i should appear where * is. however, this does >not work. the string appears where ** is located after the _MoveTo. > >someone want to explain what's going on? Isn't MoveTo using local coordinates? So, by passing a global coordinate from _LocalToGlobal to a function expecting local coordinates will do exactly what you describe. > >albert -- +---------------------------S-U-P-P-O-R-T-----------------------------------+ |/ Tim Meekins <<>> Snail Mail: <<>> Apple II \| |> meekins@cis.ohio-state.edu <<>> 8372 Morris Rd. <<>> Forever! <| |\ timm@pro-tcc.cts.com <<>> Hilliard, OH 43026 <<>> /|