Re: conio.h --> window (int left, int top, int right, int bottom)

From: Daniel O'Connell [C# MVP] (onyxkirx_at_--NOSPAM--comcast.net)
Date: 09/21/04


Date: Tue, 21 Sep 2004 03:19:07 -0500


"Maverick" <Maverick@discussions.microsoft.com> wrote in message
news:1058730C-6273-41F5-B337-E4920D228306@microsoft.com...
> 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.
>

I see. Unfortunatly I don't see anything within the framework that supports
this. I even looked for a .NET ncurses library and failed to find anything
useful(though I did find several arrogant linux blog owners, not quite sure
how that happened...). Anyway, you will probably have to use pinvoke and
implement it yourself.



Relevant Pages

  • Re: a question regarding
    ... I would very much like to see the ABI change happen, and the first step has been done already as part of the MAC work. ... By changing the size of a field in a data structure, you may change the layout of the structure, and hence the offset of other fields. ... On i386, the change from int to size_t doesn't modify the ABI, as both int and size_t are 32-bit. ... This is why DES and I have been discussing this change as requiring kernel compatibility code, which would provide new system calls working with the new layout, and retain old system calls working with the old layout. ...
    (freebsd-hackers)
  • Re: a question about private access
    ... > * dummy class with the same layout. ... solution will be highly specific to using BCB as the compiler. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: 0/1 Knapsack problem, what am I doing wrong
    ... Thx, I was secretly hoping for something like that... ... converted to int so the effect is that M only holds integers. ... You need to test inside the loop as well. ... Everything will be okay ...
    (comp.lang.c)
  • Re: Defining Slide Layout in VBA using a variable
    ... You need to convert the ppLayout* constants that you get ... as string to their int values and pass it as second argument. ... attribute on my Slide node called "layout". ... For Each SlideNode In SubjNode.childNodes ...
    (microsoft.public.powerpoint)
  • Re: Hashtable
    ... public void AddKeyedValue(string key, int value) { ... Justin Rogers ... Blog: http://weblogs.asp.net/justin_rogers "MAY" wrote in message ... > Thx again. ...
    (microsoft.public.dotnet.languages.csharp)