Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom Builders
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Custom Builders
Divers
Thread ID:
00666039
Message ID:
00666039
Vues:
55
I'm going through Doug Hennig's article about using Fox's Developer Tools. In the section entitled "Pre-Built Builders", Doug describes how he creates a button that replaces every occurance of a textbox in a grid with his own textbox. He then creates a new custom class that actually loads the button on the builder form for a grid.

I'm playing around right now, trying to get a feel for this kind of thing. I'm trying to do something a bit simpler at this point but I'm running into a snag somewhere.

I've defined my own class (mycontainer) in a classlibrary (test.vcx). I've created a button class (detailbutton) in a classlib (builderbuttons.vcx).

I've defined a BuilderX property on the mycontainer class and have it set to:

= home() + "\wizards\BuilderD,BuilderDForm"

I added a record to BuilderD.dbf with the following values:

Type: CLASS
Id: mycontainer
Links: Height[RETURN]Width[RETURN]detailbutton
Classname: mycontainer
Classlib: c:\temp\test.vcx

I also added this record:

Type: CLASS
ID: detailbutton
Classname: detailbutton
Classlib: c:\temp\builderbuttons.vcx

I have the Click event of the detailbutton class defined to simply popup a messagebox notifying me that it got there.

Doug states in his article:
"how do I get this button on the builder form? I could create a record for it in the BUILDERD table, but that would add the button on a page of the pageframe and I’d rather have the button appear with the other builder buttons."

This sounds to me like what I've done should work. However, no button appears anywhere on the form. According to what he said, I was expecting it to show up on a page of the pageframe somewhere but it doesn't appear at all.

I do not have any BuilderD property defined for the detailbutton class. I wouldn't think that would make a difference.

Can anyone tell me what I'm doing wrong or point me in the right direction?

Thanks in advance for any help.

Rodd
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform