Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textboxes for grid from class?
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00394826
Message ID:
00394846
Views:
12
>Hello,
>
>I have a grid on my form, initially it's columncount is set to -1. Programatically I set the columncount to 5 (for example) and specify the properties for each column etc.
>However, always the baseclass TextBox is used to populate the columns, is there a way to populate the columns with another textbox class, because I need to have some methods in them.
>
>Thanks for help.

Christian,

Assuming that you have the class "myText" in COOLLIBRARY.VCX
add to your Grid.Init()

* Grid.Init()
this.ColumnCount = 5
SET CLASSLIB to c:\tmp\coollibrary.vcx ADDITIVE
FOR EACH loColumn in this.columns
loColumn.RemoveObject("text1")
loColumn.AddObject("myTextBox", "myText")
ENDFOR
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform