Thread: scaling controls on window resize or font change?

  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    161

    scaling controls on window resize or font change?

    I'm working on an app with a few tabs worth of controls, and I'm curious about the best way to go about handling resizing the window if I decide to allow it. It seems like that would all have to be done one control at a time. Is there anything easier?

    Something else I plan to do is allow user to change the font in edit controls and listviews. I've done this before, but I've never considered how the font type/size effects the control. Like, if they make the font bigger, do I have to resize the controls to show it properly? How would you calculate control size based on font size/type?
    Last edited by Viper187; 07-12-2009 at 07:24 AM.

  2. #2
    Registered User
    Join Date
    Mar 2007
    Posts
    416
    It sounds like you are talking about dialog windows, right?

    Yea there's no real away to do all the controls at once during runtime (that i know of). You'd have to make a loop, or hard code in the resizing of all your controls.

    Question, if it's tabs and controls in a dialog, I'm going to assume they are either options or preference type controls. So why are you making that sizeable? If not, ignore that question.

  3. #3
    Registered User
    Join Date
    Jun 2008
    Posts
    161
    Yeah, each tab has a dialog window associated with it at runtime. I guess you could call it a substitute for the usual MDI. Each tab serves a separate, but related, task.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Flicker in window resize, controls
    By Tonto in forum Windows Programming
    Replies: 4
    Last Post: 08-27-2006, 12:00 PM
  2. Pong is completed!!!
    By Shamino in forum Game Programming
    Replies: 11
    Last Post: 05-26-2005, 10:50 AM
  3. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM
  4. setting default font to draw all further controls with
    By alandrums in forum Windows Programming
    Replies: 0
    Last Post: 12-03-2001, 10:31 PM
  5. Edit controls not sending messages to parent window
    By EMiller in forum Windows Programming
    Replies: 5
    Last Post: 11-13-2001, 11:03 PM