Thread: Resizing the screen while centering the app

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

    Resizing the screen while centering the app

    When i maximize the screen, the application stays the same... How to i allow resizing it with the entire window, or at least stay in the center?

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    You have to reposition or resize the individuals controls in your window manually.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    610
    Quote Originally Posted by Elysia View Post
    You have to reposition or resize the individuals controls in your window manually.
    Oh! no ways... If my app has about 20 controls and 20 lines of text i have to ajdust the sizes accordingly? I mean this should happen when a person drags the corners or sides of the screen as well...

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    It's a manual labor. You only need to resize the controls, though. They will take care of resizing their contents.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #5
    Registered User
    Join Date
    Apr 2008
    Posts
    610
    Quote Originally Posted by Elysia View Post
    It's a manual labor. You only need to resize the controls, though. They will take care of resizing their contents.
    ws referring to stand alone text. By what margins do i resize the controls? If the user drags the screen say by 30 inches, how much more should my controls increase... ?

  6. #6
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    As I said, the text will resize automatically if you use controls.
    If you are drawing text yourself, I suggest avoiding that. Use static text (labels).
    This isn't rocket math, you know. You will simply need some formulas.

    Like, got a textbox at the bottom of your window?
    You can resize it to say, width - 128 and height - 128, or the like.
    Figure out how you want your contents and use formulas to determine position & size.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Feedback: Functional Specification Wording
    By Ragsdale85 in forum C++ Programming
    Replies: 0
    Last Post: 01-18-2006, 04:56 PM
  2. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 10:18 PM
  3. i am not able to figure ot the starting point of this
    By youngashish in forum C++ Programming
    Replies: 7
    Last Post: 10-07-2004, 02:41 AM
  4. Converting from Screen to World Coordinates
    By DavidP in forum Game Programming
    Replies: 9
    Last Post: 05-11-2004, 12:51 PM
  5. Dialog box with full screen app.
    By curlious in forum Windows Programming
    Replies: 2
    Last Post: 10-27-2003, 10:37 AM