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:
00792644
Vues:
26
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform