Hello, everyone
I am creating a Control. In this control I have some textboxes, labels and a grid. They were added using class designer. The only thing I can say about that grid is it uses memberclasslibrary to read the columns, headers and textboxes definitions.
I can't change the grid's name after dropping it on the control. That property is readonly. (.Name property is read-write for the rest of the controls). Just for fun, I dropped another one. The same behaviour. Then I thought: maybe it's my grid class. I dropped a standard one. No luck.
Anyone knows why is that? Any workaround?
Most probably I'll get an answer such: "this is by design". In this case, I already have another question:
These are facts:
1. The subclassed DE is read-only, breaking thus the OOP
2. Some properties are readonly, breaking thus the OOP
3. The cursoradapter can't save more than 255 characters there, even it doesn't need to save them in the property - it could wery well to save them in init method, as it does with the SelectCmd)
4. If the tables are in a join in .SelectCmd (and I'll give you a real example: "join_grupuri_utilizatori,Grupuri", at the first click on the "Autoupdate" tab, CA changes them by itself in "_grupuri_utilizatori,_grupuri_utilizatori,Grupuri" - i guess this have something to do with the "join" part in the "join_grupuri_utilizator") it's a real pain to save those tables again and again and again and again and again.
5. Properties are set by calling methods (the outragious lNoDataOnLoad) - thus breaking the OOP
Here's the question: why this lousy design? Where VFP is going?
On a second thought, I don't even need an answer for that. I don't care anymire where VFP is going. I know where I am going. To .NET. This is my last application in VFP.
In a week or so I'll post the application I am working on - a cursoradapterbuilder. A real one. And then good bye.
Grigore Dolghin
Class Software.