Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SaveAsClass Bug?
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00550608
Message ID:
00550822
Views:
15
>I believe if you saveasclass from a scx it is a copy, for a form class it is subclassed. The code is there but you can't see it because it is in the parent method.

I don't want to subclass the form I want to subclass a textbox on the form and keep the code with the textbox. So if I added a textbox to the form and put code in the lostfocus and did the saveasclass method to save the textbox at runtime the code in the lostfocus doesn't get saved but if I put the textbox on a form that is an scx and saveasclass the code in the textbox does get saved.
What I'm trying to do here is that if the user screen in 640 by 480 they want tabs and when they resize the screen to 800 by 600 then they don't want tabs. So instead of making 2 forms and have redundant code at runtime I was going to saveasclass all the controls and add then to the pageframe if needed and remove the controls on the form then when the screen is resized I could remove the pageframe and add the control back to the form. The problem is that if the form is not a scx the code doesn't get saved in the new class. Why the forms are vcx's is because this is AccPac Pro 6.0 where SBT changed all the Forms to classes. So I am not tring to save the form just the controls on the form.
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform