Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Column member class
Message
De
29/03/2004 17:23:56
 
 
À
29/03/2004 14:05:04
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00890548
Message ID:
00890614
Vues:
29
This message has been marked as the solution to the initial question of the thread.
Hi Mike.

How can I add my own textbox class to this column member class and have it appear at design time the way the VFP textbox baseclass does?

You can define your column like so in a prg called GridMembers.prg. But you may want to look at BINDEVENT() as an alternative to using member classes. It may be a better solution depending on what you are trying to do.
*** Column class for grdList
DEFINE CLASS colCustom AS Column
  Name = "Colcustom"
  HeaderClass = "hdrSortGrid"
  HeaderClassLibrary = "GridMembers.prg"
  ADD OBJECT Text1 as txtgrid
ENDDEFINE

 
DEFINE CLASS txtGrid AS TextBox
  Name = "txtGrid"
  BorderStyle = 0
  SpecialEffect = 2
  Margin = 0
ENDDEFINE 


DEFINE CLASS hdrSortGrid AS Header
  Name = "hdrCustom"
  Caption = ""
  FontBold = .T.
  PROCEDURE Click
    This.Parent.Parent.SortGrid( This.Parent )
  ENDPROC
ENDDEFINE 
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform