Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Name property read-only in class designer
Message
 
 
To
23/08/2003 04:19:11
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00822847
Message ID:
00822880
Views:
18
Grigore,

>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.

Grid appears to be the only class that works like this, and the behavior goes all the way back to VFP6. I no longer have any earlier versions to test this on.

>Anyone knows why is that? Any workaround?

make a backup of your vcx/vct first!
USE YourControlClasslib.vcx
* locate the row where objname = grid1, change the objname memo to the name you want, and change the Name = line in the properties memo. Do not add any extra carriage returns in the properties memo and don't put one in the objname memo.
USE
modi class ? && now you'll see the name you want, it will still be readonly as far as the property sheet goes though.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform