Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make mygrid contain mytextbox?
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00152433
Message ID:
00152602
Views:
29
Colin,

In VFP6 you get the builder code.

It's not hard to write your own builder. Select a column of a grid. Then in the command window:

aselobj( laSel )
loCol = laSel[1]
loCol.RemoveObject( "text1" )
set classlib to mylib
loCol.AddObejct( "text1", "myText" )

There's more builder sample code on my website.

>>>Is there a way to make mygrid class contain mytextbox class when creating a grid instead of the VFP textbox class?
>>
>>You can do it either visually (add object to column in class designer)
>
>There are no columns in grid class to add object to.
>
>>or programmatically (column.addobject)
>
>Could I modify the grid builder to do something like this? If so, do you know the file name and location?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform