Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't use the class generated from form ?
Message
From
29/12/2000 13:37:57
 
 
To
29/12/2000 01:20:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00456977
Message ID:
00457880
Views:
29
>How can I make changes on container object ?
>
>thanks for your help since I am new in coding class object !!!

Wow, that's more than a little bit of an open ended question!

About the best I could suggest would be to build a visual class that's a container, drop some textboxes, etc., on it, and then view that container class using the class browser. That should get you started so that you can see how you would define a container heirachy in a programmatic class.

You should then see something like this:
DEFINE CLASS myContainer AS Container


	Width = 100
	Height = 100
	Name = "mycontainer"


	ADD OBJECT textbox1 AS textbox WITH ;
		Height = 24, ;
		Left = 0, ;
		Top = 0, ;
		Width = 36, ;
		Customproperty = 0, ;
		Name = "Textbox1"

        PROCEDURE Click
            THIS.DoSomething()
        ENDPROC

        PROCEDURE DoSomething
            *
            * your code here
            *
        ENDPROC

ENDDEFINE
Now you could do an ADDOBJECT of mycontainer (with it's textbox) to your DEFINE CLASS for your form.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform