>Sorry Matt, > >I probably wasn't clear enough in my original message. The custom class has been defined programatically with a DEFINE CLASS statement that has beeen added to the project via a SET PROCEDURE TO where is the name of the .prg file that contains the class definition code. > >>I don't understand why you don't add the class visually. Just because the custom class doesn't have a user interface, doesn't mean you can't add it visually.
No apology necessary, I didn't read the original post correctly.
Well, the only way around this I see is to define subclasses and have those added to your form at run-time.
BTW, IMO, this is a terrible implementation of OOP development. But, if you're restricted by your environment, I understand. Been there, done that. Anyway, again IMHO, probably the best way to do this is to have a 'custom subclass' prg that gets called from the load event from the forms that need to use the classes in your SET PROC statement. From there you can programmatically sub class the objects you need and then add them in the init of the form.
HTH
Matt McDonnell ...building a better mousetrap with moldy cheese...