|
From: Charles L. <da...@sy...> - 2001-07-11 23:41:26
|
>>also fixed a typo in the main window's CTYP resource (CScriba :) > >Just goes to show you dont really need those things anyway. :) Unless >we need to add custom data fields to the structure, which we do not. >We just use the standard LWindow stuff. We probably dont need any of >those CTYPs, in fact, i dont think any of them have custom data. If >you add custom classes i would say don't bother with the CTYP unless >you need to extend the built in PP stuff. (with a custom type, when >you open the project inspector, you can put additional initialization >stuff at the bottom under the class name. All of ours are empty, no >custom stuff) yeah, a CTYP is not needed for a custom class unless you add fields to the stream constructor. you can just change the Class ID in the PPob itself. if no custom type has been defined for that class ID, it'll just appear as "LWindow (SDcW)". sometimes you want to add a CTYP just to see the actual class name. for windows it's not that important, but if another developer sees a "LCaption (SwqE)", he/she might wonder what it does exactly. (even more so for attachments, since LAttachment does nothing by itself :) -- charles lechasseur - da...@sy... http://www3.sympatico.ca/danov/marathon/ "The butts of evil are awaiting my bootprints!" - Minsc |