Re: An idea that isn't working
- Posted by Rolf Schroeder <schroeder at DESY.DE> Nov 11, 1999
- 459 views
Bruce M. Axtens wrote: > Dear Eu-people > > The code below isn't working and I imagine it should. Having > set the rows to 50 why can't I position at 50? > > It fails under VirtualPC and under NT4 SP4. > > ZB > ---------------- test2.exw -------------------- > > include graphics.e > > integer r > r = text_rows( 50 ) > position( 50, 1 ) > Adam Weeden wrote: > Because the screen starts at 0 so position 50 is actually 49. > > Adam Weeden I write: text_row() is for lines 1 to 50, not 0 to 49. Try this and it works: ---------------------------------------------------------- include graphics.e include get.e -- wait_key() integer r r = text_rows( 50 ) position( 50, 1 ) puts(1,"Hello!")-- place this in 50th row... r = wait_key() -- wait here to watch the 50-row-screen! ---------------------------------------------------------- Have a nice day, Rolf