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
>