Group: Forum Members
Posts: 524,
Visits: 30K
|
Okay, I tried stealing the code from the SF source code for the TextEdit wrapper, discovering it is just a class, not a component, so it may well be that my fProperties problem was mostly because I was using a component so there was a design file.
But now there is the question of how to change defaults for properties in my subclass (the whole purpose of doing the subclass to start with )
While my rip-off of the SF wrapper fine - subclassing directly from the DevEx control just as the framework does - builds fine and works as part of my own UI dll , I have discovered that the property sheet allows you to set properties but they do not persist into the built class. Same with subclassing the MaskedTextbox.
Looks like the properties must be over ridden ( shadowed ? ) in the code itself to get new defaults.
Interesting.
Also guessing I'm going to find the DevEx control is going to work differently from the SF MaskedTextbox, since the devEx control uses a repository which seems to be basically a data dictionary approach.
Surely a whole lot of other folks have already dealt with this??? Suggestions ?
|