Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Releasing public variable
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00875746
Message ID:
00877156
Views:
17
Steve,

When you create a class itself the .Top and .Left properties are going to default to 0,0. Because this is only the class definition, it's not an instance of the class.

So say you have a classlib steve.vcx and in it you have the classes

create class cForm of steve as form
create class cTextbox of steve as textbox

So you have a form subclass that you want to base all of your forms on and a textbox subclass to use on your forms. You can add/modify the behavior of these two classes to do what you want. Now you can create a form:

create form customer as cForm from steve

Now you're designing a new form based on the cForm class, but you now have a specific instance to deal with data in your customer table. You need to add a field for say the companyname. You can drag an instance of your cTextbox class out of the project and drop it on the form and move it to wherever you want. When you are doing this you are changing the .Top and .Left (as visible on the property sheet) of this particular instance of the textbox. You can also resize it which change the .Height and .Width of the instance, but you are not changing the cTextbox class definition itself. Does this make sense?

>I resorted to using a dbf and a procedure file because I was unable to figure out how
>to position forms and objects on the screen, otherwise. If I add my form classes and
>objects to a project, when I cho0se modify class
>then each object or form appears in the upper left hand corner and how do I get to the code to
>modify it? But in the form designer, they appear accross the form, as designed but then
>the code is only available in pieces in each event? Is there a way to use the class designer,
>be able to see the code and modify it, and also see objects in their
>relative positions on the screen as in the form designer?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform