>Hi everyone.
>
>I have a problem that I'm not sure how to solve. I'm adding object to different pages on a pageframe on the fly at runtime. These are in a container with an activex flat scrollbar tied to it. Once I create everything I want to save it as a class using the Saveasclass method of the form. However when I try, it returns the error "One of the members of this class is based on a nonvisual class. Cannot write .VCX file." Every object including the activex control have a saveasclass method, except for the pages on the pageframe. Is this where I might be having the problem? Any suggestions would be great!
That exactly is your problem. Some of the base classes, like page, header, column and session (as far as I can remember at this moment) can't be created and saved visually. You can, though, opt for a container, i.e. save the container (can't save the page), and define the page programmatically, then in page's .init you can newobject() the container from the classlib where you saved the container. At runtime, you can newobject('MyNewPageName','MyPageClass','MyPageDef.prg') somewhere in the pageframe's code.
Sounds like some juggling, but it's... well, jugglable.