Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Dynamically re sizable dialog

Dynamically re sizable dialog

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    techkrish
    wrote on last edited by
    #1

    Hi, I am facing problem while calling a dialog, which contains multiple radio buttons and "OK" and "Cancel" buttons. But number of radio buttons came to know while runtime only, for this scenario, i tried to make using "Easysize" but it works only if number of radio buttons are fixed. Can anyone suggest how to handle this situation ? ~Kris

    L D _ 3 Replies Last reply
    0
    • T techkrish

      Hi, I am facing problem while calling a dialog, which contains multiple radio buttons and "OK" and "Cancel" buttons. But number of radio buttons came to know while runtime only, for this scenario, i tried to make using "Easysize" but it works only if number of radio buttons are fixed. Can anyone suggest how to handle this situation ? ~Kris

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You will need to add some code to iterate through all the controls in the dialog. Using the location and dimensions of each item you can calculate the maximum width and height required. Use that information to resize the dialog window.

      1 Reply Last reply
      0
      • T techkrish

        Hi, I am facing problem while calling a dialog, which contains multiple radio buttons and "OK" and "Cancel" buttons. But number of radio buttons came to know while runtime only, for this scenario, i tried to make using "Easysize" but it works only if number of radio buttons are fixed. Can anyone suggest how to handle this situation ? ~Kris

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        Here is one of many examples that can be found on the web.

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

        1 Reply Last reply
        0
        • T techkrish

          Hi, I am facing problem while calling a dialog, which contains multiple radio buttons and "OK" and "Cancel" buttons. But number of radio buttons came to know while runtime only, for this scenario, i tried to make using "Easysize" but it works only if number of radio buttons are fixed. Can anyone suggest how to handle this situation ? ~Kris

          _ Offline
          _ Offline
          _Superman_
          wrote on last edited by
          #4

          I would design the UI for such a requirement by embedding the radio button is some sort of a list. Here is an example - CQuickList[^]

          «_Superman_»  _I love work. It gives me something to do between weekends.

          _Microsoft MVP (Visual C++) (October 2009 - September 2013)

          Polymorphism in C

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups