Posted: Mon Oct 18, 2004 7:29 pm
However, enumerations are worthless for what you previously mentioned. You still have to hard code the constants to be enumerated. Which effectively limits your "visual designer" software to a hard coded number, which is... useless 
The reason for #PB_ANY for menuitem is for people like us creating visual designers and the like (as well as skin makers). The user can create how ever many number of menu items w/o having to worry about clashes and errors.
My visual designer creates dynamic code, as it assumes people wants to be able to easily extend the code w/o being statically limited by enumerations, and the like.
Every time I end up creating a forum or any kind of project with PV, I end up spending another 30mins to 1 hour fixing up the generated code to be dynamic.
I guess it could be considered a matter of taste. But for most of the projects I work on, requires to be easily extensable after a certain amount of time, so why not have that support in from th beginning?

The reason for #PB_ANY for menuitem is for people like us creating visual designers and the like (as well as skin makers). The user can create how ever many number of menu items w/o having to worry about clashes and errors.
My visual designer creates dynamic code, as it assumes people wants to be able to easily extend the code w/o being statically limited by enumerations, and the like.
Every time I end up creating a forum or any kind of project with PV, I end up spending another 30mins to 1 hour fixing up the generated code to be dynamic.
I guess it could be considered a matter of taste. But for most of the projects I work on, requires to be easily extensable after a certain amount of time, so why not have that support in from th beginning?