Board index » delphi » Positioning the cursor.
Gargamel
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
Gargamel
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Positioning the cursor.
I know I can use gotoxy to place the cursor where I want it, but if I do
that, I have to set the cursor again after every writeln statement. Is there a way to set the number of spaces text appears across the screen (without using some sort of write(' '); command? I'd like it to set the cursor so I don't have to call it every time I want to output text. TIA. -- |
Osmo Ronkan
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Positioning the cursor.In article <na.656ed648a0.a500d0sb...@argonet.co.uk>, QuoteGargamel <sb...@argonet.co.uk> wrote: Osmo |
Jaap van Hengstu
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Positioning the cursor.QuoteGargamel <sb...@argonet.co.uk> wrote: procedure puts(x,y: word; s: string; fg, bg: byte); where f.e. puts(10,10,"Hello World",7,0); Quote> TIA. |
Clif Pe
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Positioning the cursor.QuoteGargamel <sb...@argonet.co.uk> wrote: move the cursor one row down to column 1. |
Gargame
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Positioning the cursor.In article <71terv$...@kruuna.Helsinki.FI>, ronka...@cc.helsinki.fi (Osmo QuoteRonkanen) wrote: -- |
Gargame
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Positioning the cursor.In article <71uaur$5...@mailnews.kub.nl>, Jaap van Hengstum <s757...@kub.nl> wrote: Quote> Use this instead of writeln: This, although, I'm sure it's perfectly well-written and effective, would require me to declare where I want to put every text item. (Plus I already have a textout procedure which processes my strings which are stored as arrays, and I wouldn't know where to start to incorporate the code above). I don't really like using code I don't understand, so I'll use window(), as suggested by Osmo. I might not understand how it works, but I know exactly how to use it (now), and it defines the limits for all text items until I declare another window. Thanks anyway. -- |
Jame
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Positioning the cursor.QuoteGargamel wrote: |
Jame
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Positioning the cursor.QuoteGargamel wrote: |
Osmo Ronkan
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Positioning the cursor.In article <36456EE6.4...@mb.sympatico.ca>, QuoteJames <jo...@mb.sympatico.ca> wrote: him. Osmo |
Osmo Ronkan
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Positioning the cursor.In article <71uaur$5...@mailnews.kub.nl>, Jaap van Hengstum <s757...@kub.nl> wrote: Quote>Gargamel <sb...@argonet.co.uk> wrote: Quote> repeat Quote> inc(i); inc(d, 2); Quote>where |