Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ovette Abejuela
  Where is Ovette Abejuela?
 Cagayan de Oro City
 Philippines
 Ovette Abejuela
 Tags
Subject: Grid Class(Column,Header,Textbox)
Thread ID: 143312 Message ID: 143312 # Views: 5 # Ratings: 0
Version: Visual FoxPro 9 Category: Classes and Objects
Date: Monday, August 27, 2007 7:11:38 PM         
   


Hello everyone,

I'm pretty mixed up already on how to implement what i have in mind:
- I wanted to create a grid class which in it is also a column, header,
and textbox class
- Creating a grid class is easy BUT...
- the hard part is how do i integrate for this grid class to have under
it a Column,Header and Textbox class
- in my search and reading and most of them from this wonderful site,
i was led to BINDEVENT() and/or programatically doing it as such:
"I got the code below from this site but i will have some changes in it
if i could make it work with my grid"

        
        DEFINE CLASS GridColumn as Column
         PROCEDURE Init
          this.AddObject("hdrCol", "hdrColumn")
          this.AddObject("txtCol", "txtColumn")
          This.CurrentControl= "TxtCol"
         ENDPROC
        ENDDEFINE

        DEFINE CLASS hdrColumn as Header
         PROCEDURE click
          DO ColOptions.Mpr WITH this.parent.Name, this.Parent.columnorder
         ENDPROC
        ENDDEFINE

        DEFINE CLASS txtColumn as textbox
         PROCEDURE Click
          DO RecOptions.Mpr WITH this.value
         ENDPROC
        ENDDEFINE

- I really dont know i'f im reading the right stuff, can somebody please
help me put what i have in mind into an actual class, thanks a lot!

ENTIRE THREAD

Grid Class(Column,Header,Textbox) Posted by Ovette Abejuela @ 8/27/2007 7:11:38 PM
RE: Grid Class(Column,Header,Textbox) Posted by Cetin Basoz @ 8/27/2007 7:38:54 PM
RE: Grid Class(Column,Header,Textbox) Posted by Ovette Abejuela @ 8/28/2007 7:17:50 AM