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. Limited number of controls on a dialog?

Limited number of controls on a dialog?

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestionlearning
8 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.
  • Mircea PuiuM Offline
    Mircea PuiuM Offline
    Mircea Puiu
    wrote on last edited by
    #1

    Hi all, Has any ever encountered this kind of problem when usin VC6: On the surface of the main dialog, tthere are 129 controls (CStatic's, CEdit's, CButton's). No other resource can be added on the dialog surface (neither by resource selecting and insertion, nor by copy-paste merthod) ? Thanks SkyWalker

    T 1 Reply Last reply
    0
    • Mircea PuiuM Mircea Puiu

      Hi all, Has any ever encountered this kind of problem when usin VC6: On the surface of the main dialog, tthere are 129 controls (CStatic's, CEdit's, CButton's). No other resource can be added on the dialog surface (neither by resource selecting and insertion, nor by copy-paste merthod) ? Thanks SkyWalker

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      the number of controls that can be added in design mode is limited to 255 due to the resource identifiers. if you want more, you will have to add your controls dynamically/programmatically.


      TOXCCT >>> GEII power
      [toxcct][VisualCalc]

      Mircea PuiuM 1 Reply Last reply
      0
      • T toxcct

        the number of controls that can be added in design mode is limited to 255 due to the resource identifiers. if you want more, you will have to add your controls dynamically/programmatically.


        TOXCCT >>> GEII power
        [toxcct][VisualCalc]

        Mircea PuiuM Offline
        Mircea PuiuM Offline
        Mircea Puiu
        wrote on last edited by
        #3

        I can understand that, but why is it working if I manually add them in the .rc file (using Notepad for that) ? ( I did not have 255 identifiers yet :-( ) SkyWalker

        T J 2 Replies Last reply
        0
        • Mircea PuiuM Mircea Puiu

          I can understand that, but why is it working if I manually add them in the .rc file (using Notepad for that) ? ( I did not have 255 identifiers yet :-( ) SkyWalker

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          Mircea Puiu wrote: using Notepad for that why doun't you just use the resource editor ?????? check however to resource.h file to verify that the coutrols have consecutive IDs.


          TOXCCT >>> GEII power
          [toxcct][VisualCalc]

          Mircea PuiuM 1 Reply Last reply
          0
          • T toxcct

            Mircea Puiu wrote: using Notepad for that why doun't you just use the resource editor ?????? check however to resource.h file to verify that the coutrols have consecutive IDs.


            TOXCCT >>> GEII power
            [toxcct][VisualCalc]

            Mircea PuiuM Offline
            Mircea PuiuM Offline
            Mircea Puiu
            wrote on last edited by
            #5

            Because the resource editor was not working any longer for some reason. The IDs were consecutive. SkyWalker

            T 1 Reply Last reply
            0
            • Mircea PuiuM Mircea Puiu

              Because the resource editor was not working any longer for some reason. The IDs were consecutive. SkyWalker

              T Offline
              T Offline
              toxcct
              wrote on last edited by
              #6

              do you use VC++6 or .NET ?


              TOXCCT >>> GEII power
              [toxcct][VisualCalc]

              Mircea PuiuM 1 Reply Last reply
              0
              • T toxcct

                do you use VC++6 or .NET ?


                TOXCCT >>> GEII power
                [toxcct][VisualCalc]

                Mircea PuiuM Offline
                Mircea PuiuM Offline
                Mircea Puiu
                wrote on last edited by
                #7

                VC6 SkyWalker

                1 Reply Last reply
                0
                • Mircea PuiuM Mircea Puiu

                  I can understand that, but why is it working if I manually add them in the .rc file (using Notepad for that) ? ( I did not have 255 identifiers yet :-( ) SkyWalker

                  J Offline
                  J Offline
                  John R Shaw
                  wrote on last edited by
                  #8

                  Apparently no one else has tried that before, including the designiners of the resource editor. The limits sound like they are right (I forget what they are). I am suprised (if there is a bug) that you can add 129 controls, because the problem should have showed up at 128 controls. NEVER MIND THAT! It is working when you manually add them in the .rc because the RC compiler is doing what it was designed to do. The RC editor (on the other hand) is apparently introducing false limitations. In any case that is a ridiculous number of controls. INTP Every thing is relative...

                  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