Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Stefan Wuebbe
  Where is Stefan Wuebbe?
 Hamburg
 Germany
 Stefan Wuebbe
 To: mohammed qasem
  Where is mohammed qasem?
 amman
 Jordan
 mohammed qasem
 Tags
Subject: RE: center
Thread ID: 209400 Message ID: 209418 # Views: 3 # Ratings: 1
Version: Visual FoxPro 9 Category: Forms
Date: Sunday, December 28, 2008 2:14:07 PM         
   


> i add new method auto at the form
> insert
> * PROCEDURE Init
> BINDEVENT(_screen,'Resize', This, 'AutoResize')
> * ENDPROC
> * PROCEDURE Destroy
> UNBINDEVENTS(This)
> * ENDPROC
> * PROCEDURE AutoResize
> This.AutoCenter = This.AutoCenter
> * ENDPROC
>
> is that correct.
>

The previous example uses Define Class syntax (so that you can copy and run the code without needing SCX or VCX files).
With that syntax, all methods and properties of the class are defined inside the define/enddefine block.
Init(), Destroy() and Autoresize() each contain one single code line in that example. So that you can copy them one by one into your actual SCX methods in the Form Designer.


-Stefan

ENTIRE THREAD

center Posted by mohammed qasem @ 12/28/2008 11:51:39 AM
RE: center Posted by Stefan Wuebbe @ 12/28/2008 1:28:22 PM
RE: center Posted by mohammed qasem @ 12/28/2008 1:42:41 PM
RE: center Posted by Stefan Wuebbe @ 12/28/2008 1:48:55 PM
RE: center Posted by mohammed qasem @ 12/28/2008 2:00:18 PM
RE: center Posted by Stefan Wuebbe @ 12/28/2008 2:14:07 PM