Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Classes not to subclass
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00792211
Message ID:
00792679
Vues:
31
Aha. I was looking for them visually.

Is there a similar way to specify the base class to use for the column's Textbox?

Thanks.



>I don't find a column class or a header class in the VFP base classes.
>
>They are still there, you still have to define them in a .prg. In the .prg, you can do something like this:
>
>
>DEFINE CLASS colCustom AS Column
>  Name = "Colcustom"
>  HeaderClass = "hdrSortGrid"
>  HeaderClassLibrary = "GridMembers.prg"
>ENDDEFINE
>
>DEFINE CLASS hdrSortGrid AS Header
>  Name = "hdrCustom"
>  Caption = ""
>  FontBold = .T.
>  PROCEDURE Click
>    This.Parent.Parent.SortGrid( This.Parent )
>  ENDPROC
>ENDDEFINE
>
>
>Then you specify colCustom as the memberClass of the grid and GridMembers.prg as its MemberClassLibrary.

Read about the greatest fraud in the history of mankind.
See TaxableIncome.net.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform