Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How disappointed I am .
Message
From
08/02/2002 04:08:07
Max Chen
Yx Software
Shunde, China
 
 
To
06/02/2002 06:45:46
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00615259
Message ID:
00617159
Views:
34
Mr Kramek

I think the ability to do that with form designer is

helpful and necessary, And i think it is very easy for foxteam

to implementate that after I have tested the follow code.

They work well. The fox7(or early) may already supports that interior.


Do you consider that is breaking the principal of OOP ?


PUBLIC o
o=CREATEOBJECT('form1')
o.show

?o.command1.Added_Property
? ''
? ''
o.command1.Added_Method()

*-------------------------
DEFINE CLASS form1 AS form

DoCreate = .T.
Caption = "Hack in class"
Name = "Form1"
autoCenter=.t.

ADD OBJECT command1 AS commandbutton WITH ;
Top = 10, ;
Left = 250, ;
Height = 25, ;
Width = 100, ;
Caption = "Command1", ;
Name = "Command1",;
Added_Property = 'the value of property '


PROCEDURE command1.Added_Method
? 'the method does works'
ENDPROC

ENDDEFINE
*-----------
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform