Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Two problems when dealing with container based classes
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00734115
Message ID:
00734167
Views:
21
>
>Is there a way I can tell VFP that I want any contained controls to come from a differnet library when I subclass it? If not, how do people deal with this? I can't imagine I'm the only one to have this problem.
>

Nope. I think most of us hack the VCX to change this. There are a bunch of tools available to do this (some free, some not).

Here's a link for a new one that's pretty cool:

http://www.g2tools.com/

Click on the link on the left for HackCXPro.

If you have the Mere Mortals framework, a simpler version of the same type of tool exists in there. You might also want to do a search in the downloads section here.

>The second problem I have is dealing with control sources. Again, using my example of a class with a textbox and a command button, I want the textbox to be linked to the data, but at design time, I don't want to set the controlsource of the textbox. I try to set everything at the container level and not mess with the internals. But containers don't have controlsources. I've found ways to deal with this like making a pseudo controlsource and passing it to the textbox on init, but this all seems so kludgy. Is there a better way?

Again, not really, especially if you want to have them at the container level. It is possible to set the control sources of the contained controls when you drop the container on a form, but you have to drill into the container to do it. If you want the at the container level, you're left with creating pseudo control sources like you've been doing.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform