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. Form objects limit

Form objects limit

Scheduled Pinned Locked Moved C / C++ / MFC
question
6 Posts 3 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.
  • R Offline
    R Offline
    RuiSantiago
    wrote on last edited by
    #1

    Hi, i'm dealing with a form with about 250 objects, now i cannot insert any other objects. Is there a limit for objects in a form, can i solve by code? Thank you

    B R 2 Replies Last reply
    0
    • R RuiSantiago

      Hi, i'm dealing with a form with about 250 objects, now i cannot insert any other objects. Is there a limit for objects in a form, can i solve by code? Thank you

      B Offline
      B Offline
      benjymous
      wrote on last edited by
      #2

      Do all the objects need to be on the same form, or just all be displayed? You could use property pages to split up the objects, and then display multiple property pages -- Help me! I'm turning into a grapefruit!

      1 Reply Last reply
      0
      • R RuiSantiago

        Hi, i'm dealing with a form with about 250 objects, now i cannot insert any other objects. Is there a limit for objects in a form, can i solve by code? Thank you

        R Offline
        R Offline
        Roger Allen
        wrote on last edited by
        #3

        If I recall, there is an artificial limit of around 255 controls per window. It may be OS based or editor based. Just can't remember. As Benjymous said, splitting up the controls onto sub-pages may be the best way to go. Roger Allen Sonork 100.10016 If I had a quote, it would be a very good one.

        R 1 Reply Last reply
        0
        • R Roger Allen

          If I recall, there is an artificial limit of around 255 controls per window. It may be OS based or editor based. Just can't remember. As Benjymous said, splitting up the controls onto sub-pages may be the best way to go. Roger Allen Sonork 100.10016 If I had a quote, it would be a very good one.

          R Offline
          R Offline
          RuiSantiago
          wrote on last edited by
          #4

          Well, i'm kind of new with Visual C++, i understand the function of DoDataExchange, i read a bit about DDP in MDSN, i understand the concept but i'm sure that i know how to use it, can you give me a example? Most of my objects are used with an array, and for this form i don't have a ClassWizard, i've got a parse error when i try to call it, but the aplication works. Thank you all

          R 1 Reply Last reply
          0
          • R RuiSantiago

            Well, i'm kind of new with Visual C++, i understand the function of DoDataExchange, i read a bit about DDP in MDSN, i understand the concept but i'm sure that i know how to use it, can you give me a example? Most of my objects are used with an array, and for this form i don't have a ClassWizard, i've got a parse error when i try to call it, but the aplication works. Thank you all

            R Offline
            R Offline
            Roger Allen
            wrote on last edited by
            #5

            Classwizard doesn't like anything unexpecetd inside the DDX AFX_DATA_MAP(...) comments. If you want to use array items, just move them outside the comment block and classwizard should be happy. If your using DDX, it would recommend sticking to control variables and not CString's etc using UpdateData() as it gives you much more control. But thats just my personal preference. Roger Allen Sonork 100.10016 If I had a quote, it would be a very good one.

            R 1 Reply Last reply
            0
            • R Roger Allen

              Classwizard doesn't like anything unexpecetd inside the DDX AFX_DATA_MAP(...) comments. If you want to use array items, just move them outside the comment block and classwizard should be happy. If your using DDX, it would recommend sticking to control variables and not CString's etc using UpdateData() as it gives you much more control. But thats just my personal preference. Roger Allen Sonork 100.10016 If I had a quote, it would be a very good one.

              R Offline
              R Offline
              RuiSantiago
              wrote on last edited by
              #6

              ClassWizard is very happy now, about the variable type, i'm using, for the same object both control and text variables and i hope this is not the cause of my problem. About DDP, is there a easy way to use it? Oor good articles about? Thanks

              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