Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The GRID!
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
The GRID!
Miscellaneous
Thread ID:
00010812
Message ID:
00010812
Views:
76
In trying to create a reusable class with grid row highlighting I found this out:

Create a textbox class and save as:
class: text5
library: textgrid

Change the color of the textbox or whatever so you can see the difference when the textbox is inherited.

Now create a form;
Add the tastrade's employee table to the DE of the form.
Place a grid on the form, and set the columncount to 0.
Save the form as test.scx

Run the form, the grid should be blank.
From the command window type in:

set classlib to textgrid
test.grid1.addcolumn(1)
test.grid1.column1.controlsource = "Last_name"

At this point you should be able to edit any cell in the grid.

test.grid1.column1.addobject("text2","text5")
test.grid1.column1.currentcontrol = "text2"

But now you can't edit any of the cells, as a matter of fact, the cells turn completely white when you are on focus with them. Why?

I need to inherit code from a textbox class I created to finish my grid row hilight class, so it will be good with any number of columns.

Any help clears up much mystery on this end!
Greg
** ** ** ** ** ** ** ** ** ** **
Gregory Cummines
Visual FoxPro 3.0/5.0
C/C++ Applications
** ** ** ** ** ** ** ** ** ** **
Next
Reply
Map
View

Click here to load this message in the networking platform