Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Column member class
Message
De
30/03/2004 09:15:42
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
À
29/03/2004 17:23:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00890548
Message ID:
00890741
Vues:
25
Hi Marcia,

Thank you. Thats exactly what I was looking for.

BTW, can you explain how BINDEVENTS could potentially help here? My only use of BINDEVENTS thus far has been to resize objects in my form when the form resizes.

Mike


>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