number o fcontrols limited to 255?
-
It seems Visual C++ dialog boxes limit the number of controls to 255. I tried adding more controls but it keeps reverting to the select tool. How do I get around this? Thanks!
-
It seems Visual C++ dialog boxes limit the number of controls to 255. I tried adding more controls but it keeps reverting to the select tool. How do I get around this? Thanks!
why the he** would you EVER wanna put more controls than that on a form? My articles BlackDice
-
It seems Visual C++ dialog boxes limit the number of controls to 255. I tried adding more controls but it keeps reverting to the select tool. How do I get around this? Thanks!
But seriously, I think if you really need to do that, you might wanna try adding them at runtime. My articles BlackDice
-
But seriously, I think if you really need to do that, you might wanna try adding them at runtime. My articles BlackDice
Client requirements. So there's no way of changing the limit? Adding it at run-time is my best bet? Doing that might complicate things?
-
It seems Visual C++ dialog boxes limit the number of controls to 255. I tried adding more controls but it keeps reverting to the select tool. How do I get around this? Thanks!
The editor limits the number of controls to 255, you can add more dynamically. But as the previous poster said, any dialog with that many controls is going to be a usability nightmare. Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke
-
Client requirements. So there's no way of changing the limit? Adding it at run-time is my best bet? Doing that might complicate things?
i think you can add more controls by changing the id of the control from default to your custom names ( ie IDC_XXXXX1, IDC_XXXXX2 in to custom ones) BTW: how u tried to create the controls? simply copy-> paste ? Ninety-eight percent of the thrill comes from knowing that the thing you designed works, and works almost the way you expected it would. If that happens, part of you is in that machine.
-
i think you can add more controls by changing the id of the control from default to your custom names ( ie IDC_XXXXX1, IDC_XXXXX2 in to custom ones) BTW: how u tried to create the controls? simply copy-> paste ? Ninety-eight percent of the thrill comes from knowing that the thing you designed works, and works almost the way you expected it would. If that happens, part of you is in that machine.
renjith_sree wrote:
think you can add more controls by changing the id of the control from default to your custom names
no, this is a know issue... the only way to get rid of it is to add the 256+ controls at runtime...
TOXCCT >>> GEII power
[toxcct][VisualCalc] -
It seems Visual C++ dialog boxes limit the number of controls to 255. I tried adding more controls but it keeps reverting to the select tool. How do I get around this? Thanks!
Hi, If you need to put so many controls on a single dialog, there is something wrong with your design. This is most definitely not manageable. There are different ways to implement a manageable dialog, which does the same (or even better): - property sheets - sub dialogs - child controls - status bars - toolbars So the real question is why do you need so many controls on a single dialog. codito ergo sum
-
Client requirements. So there's no way of changing the limit? Adding it at run-time is my best bet? Doing that might complicate things?
elephantstar wrote:
So there's no way of changing the limit?
Correct. It is a design-time limitation. Why do you not use a tabbed dialog instead? Surely you can put 255 controls into meaningful groups.
"Take only what you need and leave the land as you found it." - Native American Proverb