Window Size

This is a discussion on Window Size within the C Programming forums, part of the General Programming Boards category; Is there a way to set the window of a program to a certain size? It can be in c++ ...

  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    13

    Window Size

    Is there a way to set the window of a program to a certain size?
    It can be in c++ if not possible in c.

  2. #2
    cas
    cas is offline
    Registered User
    Join Date
    Sep 2007
    Posts
    979
    With the X window system you can use XResizeWindow().

    I'm not sure if that's at all what you're asking, though, so if not, please ask a more specific question.

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    13
    Well Im trying to make my window for a console a certain size because Im trying to make a space invader game.

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Quote Originally Posted by maniac20 View Post
    Is there a way to set the window of a program to a certain size?
    It can be in c++ if not possible in c.
    The easiest way is to make your window for your game, (ie. run your game), then right click on the top bar of the window, and select "defaults" from the pop up menu.

    Now go to "layout" tab, and select the "full size" window option on the right hand side. Click apply and OK. It will ask if you want to use this setting for just that window instance, or for any window instance with this name. Choose the latter.

    Then close and re-start your game.

    There are a few other ways to do this, as well. This is just one simple way.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C or C++
    By AcerN30 in forum Game Programming
    Replies: 41
    Last Post: 05-30-2008, 06:57 PM
  2. Just starting Windows Programming, School me!
    By Shamino in forum Windows Programming
    Replies: 17
    Last Post: 02-22-2008, 07:14 AM
  3. Why only 32x32? (OpenGL) [Please help]
    By Queatrix in forum Game Programming
    Replies: 2
    Last Post: 01-23-2006, 01:39 PM
  4. Adding colour & bmps to a Win 32 Window??
    By carey_sizer in forum Windows Programming
    Replies: 4
    Last Post: 09-04-2004, 05:55 PM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 09:01 PM

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