Re: conio.h --> window (int left, int top, int right, int bottom)
From: Maverick (Maverick_at_discussions.microsoft.com)
Date: 09/21/04
- Next message: Olaf Baeyens: "Re: newbie question..."
- Previous message: Mark Broadbent: "Re: C# over VB"
- In reply to: Daniel O'Connell [C# MVP]: "Re: conio.h --> window (int left, int top, int right, int bottom)"
- Next in thread: Daniel O'Connell [C# MVP]: "Re: conio.h --> window (int left, int top, int right, int bottom)"
- Reply: Daniel O'Connell [C# MVP]: "Re: conio.h --> window (int left, int top, int right, int bottom)"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 21 Sep 2004 01:07:02 -0700
thx for the tips Daniel
Assume the follow is the layout of a console screen
---------------------------------------------
| |
| |
|------------------|------------------------|
| x | |
|------------------|------------------------|
If I want to place a text on a certain area of the screen (for example Area
X in the above console screen), I use window(int, int, int, int) method.
Arguments are left, top, right and bottom coordinates of the window, and
after calling this method cout (or Console.out.writeline in C#) will print in
that console area until you create a new one. Point to remember:
window-arguments are not pixel coordinates, they refer to 80 colums and 24
rows of text. This makes placing text exactly inside (for example) an area
somewhat difficult... Header file is conio.h.
"Daniel O'Connell [C# MVP]" wrote:
>
> "Maverick" <Maverick@discussions.microsoft.com> wrote in message
> news:67C21CB7-CB69-42C2-8079-2E6EEC69072A@microsoft.com...
> > There's a function in Borland C conio.h
> >
> > window (int left, int top, int right, int bottom)
> >
> > how can i provide the same function in C#
>
> A description of what the function does would be nice. You need to post with
> the assumption that no one knows what it is.
> I'm not even having much luck googling this, it seems like conio.h has a
> number of different uses.
>
>
>
- Next message: Olaf Baeyens: "Re: newbie question..."
- Previous message: Mark Broadbent: "Re: C# over VB"
- In reply to: Daniel O'Connell [C# MVP]: "Re: conio.h --> window (int left, int top, int right, int bottom)"
- Next in thread: Daniel O'Connell [C# MVP]: "Re: conio.h --> window (int left, int top, int right, int bottom)"
- Reply: Daniel O'Connell [C# MVP]: "Re: conio.h --> window (int left, int top, int right, int bottom)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|