Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding code to existing grid textboxes
Message
From
18/07/2007 08:28:25
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01241212
Message ID:
01241442
Views:
28
>
>Cetin,
>I was wondering if this could be done. I would need to add a few things to your code as we only want to change out text boxes that are from the VFP base class but that's not a problem. I the previous post in this thread you will see where Borislav came up with some code for the grid init that swaps them out at runtime. It seems to work well on the test form I did and I am going to put it into the grid base class and see what happens. If we don't run into any problems I will probably swap them all out using your code.
>Thanks for the help.

"I would need to add a few things to your code as we only want to change out text boxes that are from the VFP base class"
Code does that, only touches the ones that come from base class.

Swapping them out at runtime, is not something I'd suggest. That's why I said a custom grid, building its own custom controls would kill existing method code if any. I wouldn't want to go and check each and every textbox if I have already some code in them;)

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform