Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ken Murphy
  Where is Ken Murphy?
 Springhill
 Canada
 Ken Murphy
 To: sytze de boer
  Where is sytze de boer?
 
 New Zealand
 sytze de boer
 Tags
Subject: RE: Grid class
Thread ID: 143574 Message ID: 143585 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Grids
Date: Thursday, August 30, 2007 4:41:28 AM         
   


> >
> > Sytze,
> >
> > The very same way. Start by creating your own base grid class. Go to your VFP project's Classes tab and click "New", Give it a name (one that will follow your naming convention) like BaseGrid (or what ever), select "Grid" from the dropdown, and store it in your "Base.VCX" file (or what ever you called it.) This will pop up a grid. Save it and you have your own grid class. You can add your own functionality to it as you need. Sub-class your base class and add more functionality. What are you trying to accomplish?
> >
> > Ken
> > You shall know the truth - and the truth shall set you free. (John 8:33)
>
> Hi Ken
>
> Thanks for your unput
> What you explain above is what I tried to do, but unlike FORMS class where I updated my Fox by clicking Tools, Options, Forms (tab), I can't locate the Grids one.
> So, when modify form myform, it comes up with my "template", but when I drop the grid onto this same form, it completely ignores my grid class
> Please try me again
>
> Sytze

Ah - getting your new grid class onto the form. Not a problem - open up your form and then take a look at the form control toolbar. You will notice a toolbar button that looks like a small stack of books (a library) - click this button and it will give you a small dropdown menu. Click "Add" and then navigate to your VCX. Click Open and you now have that VCX attached to your form controls toolbar. You can click that stack of books again and you will see the Standard vfp tools, your new vcx, the activex library, and any others that you might wish to add. Now that you have your VCX added to the forms tool bar, go ahead and drop your new grid onto the form (just as you would the standard grid.) Give it a play and see where you get.

Ken
You shall know the truth - and the truth shall set you free. (John 8:33)

ENTIRE THREAD

Grid class Posted by sytze de boer @ 8/30/2007 12:56:08 AM
RE: Grid class Posted by Ken Murphy @ 8/30/2007 1:14:23 AM
RE: Grid class Posted by sytze de boer @ 8/30/2007 3:09:19 AM
RE: Grid class Posted by Ken Murphy @ 8/30/2007 4:41:28 AM
RE: Grid class Posted by Cetin Basoz @ 8/31/2007 12:29:26 PM