Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Cetin Basoz
  Where is Cetin Basoz?
 Cetin Basoz
 To: sytze de boer
  Where is sytze de boer?
 New Zealand
 sytze de boer
Subject: RE: Grid class
Thread ID: 143574 Message ID: 143748 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Grids
Date: Friday, August 31, 2007 12:29:26 PM         

> 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

And sometimes I find it tedious to click on that books icon to add my grid (which maybe in a prg file), then I do it like:

Go to command window while your form is active in design
aObj[1].Newobject('grdOrders', 'myGridClassName', 'myClasses\myClassLibName.prg')

If you have a series of class libraries that you always want to see and simply choose with a single click to books icon (instead of add everytime you need them) then go to tools\Options, Controls tab. With "Visual Class libraries" marked add yor frequently use libraries.

Tip: You can design a grid (or any other control, a group of controls) on a form and save it as a class from the menu "file\save as class". It works well for non-generic grid classes. Generic ones are generally best build in code.

Tip: Putting your form class in Tool\Options\Forms tab looks appealing at first but on the long run it may drive you crazy. Instead keep there empty. You can create a new form from a class in command window like this:

create form "myFormLocation\myFormName" as "myFormClass" from "myClasses\MyClassLib.vcx"

Cetin Basoz


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