Is it possible to make some text fix on one side of the windows?

This is a discussion on Is it possible to make some text fix on one side of the windows? within the C Programming forums, part of the General Programming Boards category; I know that there is way to make a line fix on top of the window. But is it possible ...

  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    4

    Question Is it possible to make some text fix on one side of the windows?

    I know that there is way to make a line fix on top of the window. But is it possible to make the text fix on either left or right hand side of the windows? Something like area for inputting on one side and instructions on the other side...

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Yes. You can do it yourself in console mode, or you can use Window's API, or a library like ncurses.

  3. #3
    Registered User
    Join Date
    Dec 2009
    Posts
    4

    Smile

    Quote Originally Posted by Adak View Post
    Yes. You can do it yourself in console mode, or you can use Window's API, or a library like ncurses.
    Seems thtat is somthing complicated. Is there any web sites for reference?

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    First thing is, what is your operating system and do you have a header file called "conio.h"?

    What compiler are you using?

    It's not complicated, but it takes some time to work out the details. Moreso when you're a beginner, but you learn something, too. That can be a good trade off.

    I wouldn't do this for a program that I was never going to see again or cared about, but for a solid learning experience on a program that I wanted to develop - yeah, it's worth it!

    We don't need no stinking web sites!

    Honestly, I never looked for one when I did this. Google is your friend, though.

  5. #5
    Registered User
    Join Date
    Dec 2009
    Posts
    4
    Quote Originally Posted by Adak View Post
    First thing is, what is your operating system and do you have a header file called "conio.h"?

    What compiler are you using?

    It's not complicated, but it takes some time to work out the details. Moreso when you're a beginner, but you learn something, too. That can be a good trade off.

    I wouldn't do this for a program that I was never going to see again or cared about, but for a solid learning experience on a program that I wanted to develop - yeah, it's worth it!

    We don't need no stinking web sites!

    Honestly, I never looked for one when I did this. Google is your friend, though.
    My OS is Windows Vista and I'm using Dev C++ as the compiler. Actually, I have tried hard to find something on google, but I cannot find any thing about it...

  6. #6
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Try to compile and run this program. Let's see if you have the conio.h header file

    Code:
    #include <stdio.h>
    #include <conio.h>
    
    int main() {
    
      int i;
      gotoxy(10, 10);
      for(i = 0; i < 10; i++)
        printf("%d", i);
    
      getch();
    
      return 0;
    }
    We don't have to have conio.h to do this, but it might help.

    Let me know.

  7. #7
    Registered User
    Join Date
    Dec 2009
    Posts
    4

    Wink

    Quote Originally Posted by Adak View Post
    Try to compile and run this program. Let's see if you have the conio.h header file

    Code:
    #include <stdio.h>
    #include <conio.h>
    
    int main() {
    
      int i;
      gotoxy(10, 10);
      for(i = 0; i < 10; i++)
        printf("%d", i);
    
      getch();
    
      return 0;
    }
    We don't have to have conio.h to do this, but it might help.

    Let me know.
    It does work! And I know what to do now. Thank you for your help!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. DirectX | Drawing text
    By gavra in forum Game Programming
    Replies: 4
    Last Post: 06-08-2009, 12:23 AM
  2. openGL text in multiple windows
    By hannibar in forum Windows Programming
    Replies: 1
    Last Post: 03-02-2006, 01:17 PM
  3. How to use FTP?
    By maxorator in forum C++ Programming
    Replies: 8
    Last Post: 11-04-2005, 02:17 PM
  4. Codec Bitrates?
    By gvector1 in forum C# Programming
    Replies: 2
    Last Post: 06-16-2003, 08:39 AM
  5. how to make 2 text window
    By bluexrogue in forum C Programming
    Replies: 2
    Last Post: 09-15-2001, 08:51 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21