Limited number of controls on a dialog?
-
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
-
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
-
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]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 -
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 -
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]Because the resource editor was not working any longer for some reason. The IDs were consecutive. SkyWalker
-
Because the resource editor was not working any longer for some reason. The IDs were consecutive. SkyWalker
-
VC6 SkyWalker
-
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 :-( ) SkyWalkerApparently 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...