Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving an object around
Message
 
To
25/03/2004 10:46:36
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brazil
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00889390
Message ID:
00889636
Views:
24
Worked! Thanks

>Hi Timothy!
>
>>>Another quest if I may, in creating a form programmatically using:
>>>"frmMyForm = CREATEOBJECT('Form')",
>

>
>>>How does one get access to the methods of the form itself like you do for the objects on the form?
>

>>>
>>>This is a encrypted english for me.
>>>
>>>- Get access for write code or for execute the code ?
>>>
>>>Sorry but i have not understood.
>>
>>
>>
>>In other words, from the example below where a form is created programatically, you see where the classes are defined for each object? You can access these objects methods like the click event by saying "Procedure click" and below it typing what you want in the click event. But how do you do this for the form itself?
>
>If I understand, you can to do this:
>
>frmMyForm = CREATEOBJECT('myForm')  && Create a Form
>
>
>Define Class myForm as Form
>   .Visible = .T.
>
>   Procedure Click()
>      Messagebox([Form was click!])
>   EndProc
>
>   Procedure Resize()
>      Messagebox([Form's size was change!])
>   EndProc
>EndDefine
>
>Other way is to use BindEventes function (see help for more information), if your VFP is 7 or 8.
>I hope this help you!
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform